ASP.Net - Global.asax Application_Start event does not fire

By [)ia6l0 iii

There are many threads on the internet that tell you to play with Session or any other web.config values to get Global.asax events working. If they do not work, then this tip is for you.

The IIS Process can be started well before the Visual Studio Debugger is attached to the process. So you will never hit the breakpoints that you set in the Application Start event.

An alternative that you can follow is to attach the debugger to the aspnet worker process and then hit the url.

Related FAQs

If you browse your mvc pages, through modern day browsers like Chrome - you will find that there would be additional requests like the ones to the favicon. This is the icon, that appears to the left of the web address in the browser once the page loads.
ASP.Net 4.0 provides the SetSessionStateBehavior method through the HTTPContext Class.
Use the Override versions of the page methods instead of thedefault page methods. This would ensure that the .Net runtime does not have to invoke delegates.
Use the FilePathResult to return a file content as the http response.
You can check the contenttype of the request, and figure out if the request is an JSon request
This error most widely occurs due to a corrupt temporary file. You can clean the solution, delete the temporary files and rebuild your solution.
ASP.Net - Global.asax Application_Start event does not fire  (2587 Views)