Questions tagged [application-onerror]
5 questions
12
votes
6 answers
ASP.NET - how to show a error page when uploading big file (Maximum request length exceeded)?
Application able to record error in OnError, but we are not able to do any redirect or so to show something meaningfull to user.
Any ideas?
I know that we can set maxRequestLength in web.config, but anyway user can exceed this limit and some normal…

st78
- 8,028
- 11
- 49
- 68
5
votes
3 answers
Get URL of error page in global.asax's Application_OnError
I have an ASP.NET application where I am tracking my application level errors using Global.asax On_Error method. I will send an email to my id when there is some error happened in the site (i.e.: when the Application_Error being invoked). Now from…

Shyju
- 214,206
- 104
- 411
- 497
1
vote
2 answers
Getting correct Response.StatusCode from Application_OnError (ASP.NET MVC)
I'm trying to create some basic logging for unhandled exceptions in my ASP.NET MVC application, but as I'm using IIS6 all requests come through .NET. Now while I agree that missing images are an important thing to flag, they aren't show-stoppers and…

tags2k
- 82,117
- 31
- 79
- 106
1
vote
1 answer
Application_OnError not always working
I experience strange problem. We have error handling in global.asax that would redirect user on special page in case if error happened:
void Application_Error(object sender, EventArgs e)
{
.......
string pageError =…

Georgy Smirnov
- 391
- 3
- 10
0
votes
1 answer
How to Application_End the file app_offline.htm is automatically created?
Is it possible?
How to Application_End the file app_offline.htm is automatically created or rename old file to 'app_offline.htm' And in the Application_start to remove or rename this file?
My goal is that the site is down(Application_OnEnd or…