Global.asax not firing for Release build

前端 未结 5 1219
慢半拍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:38

    We had this problem and a missing PrecompiledApp.config file was the solution. Without it global.asax events did not fire under IIS6 using an ISAPI filter and the rewritten.aspx approach documented e.g. on blog.codeville.net. We use msbuild to precompile the site before deploying.

    We scratched our heads over this one for a couple of hours when our builds stopped working. Turns out while in obsessive house-keeping mode I had removed this file from source control as I thought it was redundant. Adding it back in fixed the problem.

提交回复
热议问题