Line numbers missing from exception stack trace when ASP.NET impersonation enabled

删除回忆录丶 提交于 2019-12-08 08:34:51

问题


An ASP.NET 2.0 web application has been compiled with PDB symbols, deployed to a server running IIS 6.

In the web.config, user impersonation is enabled:

  <identity impersonate="true" />

When an Exception is thrown, the stack trace is missing line numbers, making it very difficult to determine exactly where the exception is emanating from. eg.

System.NullReferenceException: Object reference not set to an instance of an object. at MyApp.ReportingServices.WebForm.DA.AmoRepository.GetDimensions(String perspective)

The login being used to access the website has no special rights or group membership on the server.


回答1:


I managed to get a detailed stack dump for the exception by assigning the 'Debug Programs' user right to the particular login.

Once the exception was diagnosed I removed that user from that assignment.



来源:https://stackoverflow.com/questions/4130956/line-numbers-missing-from-exception-stack-trace-when-asp-net-impersonation-enabl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!