Global.asax not firing for Release build

前端 未结 5 1235
慢半拍i
慢半拍i 2020-12-03 23:35

One of our applications has a mechanism for emailing our Helpdesk automatically should it encounter a certain level of exception. One particular exception, a NullReferenceEx

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 00:39

    We tried a lot of things.

    1. Global.asax is not publishing and event are not firing in Global.asax
    2. Why are the Global.asax events not firing in my ASP .NET website?
    3. global.asax works on local computer but not after i publish to server
    4. Mystery of Global.asax in ASP.NET MVC application

    We also tried putting the below files in root and bin directories.

    1. App_global.asax.dll and App_global.asax.compiled files
    2. PrecompiledApp.config

    None of it worked!

    We had to put raw Global.asax instead of pre-compiled dll, in order to fire the global events, for our asp .net 2.0 website.

    Hope this helps someone! Cheers! Happy coding! :D

提交回复
热议问题