Global.asax Application_Error NullReference异常

问题描述 投票:0回答:1

Asp.net Web表单在我的Global.asax中我正在处理应用程序错误我得到空引用异常发件人Global.asax我调试了其中的所有函数,但没有返回错误我确定这是从其他地方来的问题

Server.GetLastError()

不提供有关错误的信息或给出错误的代码enter image description here

c# webforms global-asax
1个回答
0
投票

如果您在Application_PostAuthenticateRequest或Global.ascx.cs中的其他位置使用了不兼容的代码,则会发生这种情况。

© www.soinside.com 2019 - 2024. All rights reserved.