this is generally a permission error on the server. also check you deployed Global.asax and the code behind file is in the build.
note: .net 4.6 is no longer supported. you should see if the issue is reproducible when the server is using .net 4.8
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We have an .net framework web application running on IIS 10. I've added some code in the Application_start method of Global.asax.cs and it's not getting fired at all in the server. This is working just fine in debug using visual studio 2022 using target framework 4.6 Build machine is also using visual studio 2022, and the target framework in server is also 4.6. . It's not just Application_start and looks like no event in Global.asax.cs is being fired. We have some methods in Application_Error to capture the uncaught exception and to show a user friendly error message. That also is not working.
Interesting part is that this worked a few months ago. After that there were no changes to Global.asax or Global.asax.cs.
We can't debug on server since there is no Visual Studio installed there. Any guidance on what could be wrong or any way to identify the issue is appreciated.
Thanks in Advance.
this is generally a permission error on the server. also check you deployed Global.asax and the code behind file is in the build.
note: .net 4.6 is no longer supported. you should see if the issue is reproducible when the server is using .net 4.8
The issue was due to a 'PrecompiledApp.config' file present in the deployment folder. This app was a 'WebSite' app previously and when we converted it to 'WebApplication', it looks like the devops pipeline missed to cleanup the PrecompiledApp.config. Deleted that file and everything is working now.