C# ASP.NET:在生产环境中获取System.Web.HttpUnhandledException
我试图主持一个网站开发的ASP.NET4网络表单。虽然它在我的VisualStudio2012中运行良好,但在远程IIS(7.5版)中却没有 以下是异常的堆栈跟踪:-C# ASP.NET:在生产环境中获取System.Web.HttpUnhandledException,c#,asp.net,iis-7.5,C#,Asp.net,Iis 7.5,我试图主持一个网站开发的ASP.NET4网络表单。虽然它在我的VisualStudio2012中运行良好,但在远程IIS(7.5版)中却没有 以下是异常的堆栈跟踪:- Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolea
Exception of type 'System.Web.HttpUnhandledException' was thrown.
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
有人能帮我解决这个问题吗?有内部异常吗?我的日志文件只提供了这么多信息。你在本地的IISExpress上运行它吗?是的,IISExpress是默认的。它抛出HttpUnhandledException的原因可能有数千个。内部异常对于解决您的问题至关重要。您可以扩展日志记录以递归方式记录所有内部异常吗?