Questions tagged [application-error]

Application_Error handler in the Global.asax file is a method that will fire and catch all unhandled ASP.NET errors while processing a request.

Application_Error handler in the Global.asax file is a method that will fire and catch all unhandled ASP.NET errors while processing a request — in other words, all the errors that are not caught with a Try/Catch block or in a page-level error handler. In the example, the handler transfers control to a generic error page named GenericErrorPage.aspx, which interprets the error and displays an appropriate message.

88 questions
0
votes
1 answer

Heroku webapp - Random "Application Error"

Launched few weeks ago my web appp developed with ROR 3 and deployed on Heroku. Problem is, sometimes it works perfectly well, sometimes it doesn't, got this message error: APPLICATION ERROR An error occurred in the application and your page could…
0
votes
1 answer

I would like to use Application_End and Application_Error for logging, but have no global.asax file?

I am trying to write some logging for unexspected session losses, i'm unsure if its a timeout issue or something is cuasing me to loss my sessions. Following this questions answer ASP.NET SessionState timeout I would like to write my logging in the…
Pomster
  • 12,548
  • 52
  • 122
  • 196
0
votes
1 answer

HTTP Status 500 customise through webapp error page

I have customized error code 403 (client error) through webapp i.e. adding entry in web.xml as below which works fine. 403 /access-denied.xhtml I try to customise…
0
votes
1 answer

Override HTTP 500 Internal Server Error in Apache

I am following the article Custom error pages in Apache for JBoss AS7 to configure apache to override HTTP 500 Internal Server Error. I am facing below problem, any guess what's the issue? In #2 in the above linked article # (4) Setting error code…
Kaizar Laxmidhar
  • 799
  • 15
  • 37
0
votes
1 answer

Application_Error event in Global.asax not firing in Release Mode? ASP.NET MVC application

I'm working on an ASP.NET MVC application. I'm having a problem where my Application_Error() event in my Global.asax file isn't firing in Release Mode. If I compile in Debug it fires just fine. PS: I'm using NLogger to log my runtime errors. Any…
Ravi
  • 1,243
  • 5
  • 20
  • 31
0
votes
1 answer

Server.Transfer cannot render an MVC-View

In my Application_Error event handler i want to render an MVC-View for 404. I do not want to redirect because of SEO. void Application_Error(...) { if (serverException is HttpException && ((HttpException)serverException).GetHttpCode() == 404) { …
usr
  • 162,013
  • 33
  • 219
  • 345
0
votes
2 answers

Throwing all errors to be handled in Application_Error handler in Global.asax

I want to throw all the form errors to the event log. To achieve this, I added code to Application_Error handler to send the error text to event log. I would like to know how to throw the exception to be caught in the Application_Handler without…
Tom
  • 490
  • 1
  • 6
  • 22
0
votes
1 answer

Application error

HI, I'm getting following error when I run the application after building it. Any solution to this problem is appreciated. "The application failed to initialize properly (0xc0000022). Click on OK to terminate the application." Thanks in adv..
harik
  • 543
  • 1
  • 5
  • 16
-1
votes
2 answers

Heroku Application Error - despite successful deploy

Background:I have a Flask app with RESTful API and webpages that I'm trying to deploy to Heroku. As a Python-based (app.py) project, I obviously deploy the 'python way'. The requirements include a requirements.txt file. Issue:I did a pip freeze and…
William
  • 314
  • 1
  • 8
-1
votes
1 answer

Twilio Application Error making Calls

Trying to make call from my app to a number using Twilio API's When call is received, getting application error and here is the debugger logs for that call: Error - 11200 HTTP retrieval failure 502 Bad Gateway errors Passing a URL when POST…
davy
  • 1
  • 2
-1
votes
1 answer

Use GetLastError() to retrieve custom exception properties

So I've created a custom exception class (let's call it CustomException) along with some custom properties not found in the Exception class. In the global.asax.cs file there is the Application_Error method that is called whenever an exception…
-2
votes
1 answer

Heroku shows 'Procfile declares types -> (none)' but I am declaring a web process

I have tried each and everything... Renamed the Procfile, moved it to the root directory, etc. Wee the images below. This is the error showing on my webapp page: This is showing on my dashboard as Heroku has not recognized my Procfile: This is the…
-3
votes
1 answer

MVC - Input string was not in a correct format - Application_Error - Global.asax

I do not know where this exception is being thrown. I intercept the exception in Application_Error. Application_Error is called after the page is fully loaded. It occurs on any page. Code of Application_Error: protected void Application_Error(object…
user3812703
1 2 3 4 5
6