Line numbers missing from exception stack trace wh

2019-05-31 01:49发布

问题:

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.