I am developing ASP.NET web application and for unhandled exception i am making use of Global.asax file Where I wrote a logic to write the error logs as
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
'Code that runs when an unhandled error occurs
End Sub
It all works locally but when published the website global.asax not being published still i uploaded global.asax to remote server but events are not firing My application uses IIS 7 as a Web server
Do i need any sort of configuration Suggest if you have any solution
We tried a lot of things.
We also tried putting the below files in
root
andbin
directories.None of it worked!
We had to put raw
Global.asax
instead ofpre-compiled
dll, in order to fire the global events, for our asp .net 2.0 website.Hope this helps someone! Cheers! Happy coding! :D
i also uploaded App_global.asax.compiled and it works