我需要在Global.asax的Application_Error中获得详细的错误。
我使用Server.GetLastError().Message
,但会返回Exception of type 'System.Web.HttpUnhandledException' was thrown.
我需要更多细节,我该怎么做?在asp.net C#
答案 0 :(得分:3)
你在搜索Server.GetLastError()。StackTrace?如果没有,请说明你想要展示什么?
答案 1 :(得分:0)
知道了。我在寻找Server.GetLastError().InnerException
。它返回完全详细的错误消息。