本文介绍了Global.asax事件Application_Error未触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
海伊,
正在收到如下错误消息..
Haii,
Am Getting an Error as Follows..
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
TRANSACTION_frmStore.Page_Load(Object sender, EventArgs e) +58
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
当会话过期时,就会发生这种情况. global.asax中提供了用于处理错误的代码.
托管此错误后,应用程序在本地运行Fine bt.即,未将其重定向到Login.aspx.
为什么会这样呢..
在此先感谢..
This is happening When the Session is Expired. Code to handle the error is there in global.asax.
Locally the Application is running Fine bt after hosting this error is happening.. ie it is not redirected to Login.aspx.
Why it is happening so..
Thanks in advance..
推荐答案
这篇关于Global.asax事件Application_Error未触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!