In my web application, i cant get the events in Global.asax file to fire on my server. However the same Global.asax works fine on my development machine. I am using IIS 8 server and my target framework is 4.0.
I've tried a lot of different settings with the application pool and I still cant get it to work. Global.asax contains application_error handler. This application_error is not firing. For testing purpose, i added msg display in the application_start event to check whether its firing the events in global.asax , but its not calling any events in global.asax
What I have tried:
I have tried the following things
1) Rebooting the machine/server
2)Adding 'runAllManagedModulesForAllRequests="true"' into modules header in web.config.
3)Copied the local app_code.dll, app_code.compiled and globax.asax.dll and global.asax.compiled from local to server.
4)Tried with precompiled settings and registered the precompiled.config in server