In my ASP.Net application, I can\'t get the events in Global.asax to fire on my machine. For instance, Session_Start will not fire.
The same Global.asax works fine
As I write here, in my case, I was publish my site in production and I miss copy to server App_global.asax.compiled file. For this reason was not fire the Events inside Global.asax.
Hope anyelse help this tips, I lost 8 hours seeking.
Application level events only need proper naming to work. Is your codebehind class being designated in your Global.asax file?
<%@ Application Inherits="YourNamespace.YourApplicationClass" Language="C#" %>
This is a long shot but I have been bitten by this before. When you created your Global.asax.cs file did you make sure to include a basic Global.asax file in your project?
Also make sure that the inherits property in that Global.asax is pointing to your custom class (namespace and all) in your Global.asax.cs file.
I had this problem once and it was because I totally forgot to make the Global.asax file and hook it up to my class. I had just copied the Global.asax.cs from another project that did something similar.
becuase project is compiled first and then you have add or modify or changed location of global.asax.vb.
Solution :- Just remove debug folder. Clean project and then rebuild whole project.
Regards, Mihir
If you have fiddled with ASP.NET then maybe try reinstalling it.