The number of rows that are not in the exception stack trace when ASP.NET impersonation is enabled

ASP.NET 2.0 web application compiled with PDB characters deployed on a server with IIS 6.

User impersonation is included in web.config:

<identity impersonate="true" /> 

When an exception is thrown, there are no line numbers in the stack trace, making it difficult to pinpoint where the exception is coming from. eg.

System.NullReferenceException: The object reference is not set to an instance of the object. in MyApp.ReportingServices.WebForm.DA.AmoRepository.GetDimensions (Perspective String)

The login used to access the website does not have special rights or group membership on the server.

0
stack-trace exception impersonation
source share
1 answer

I managed to get a detailed dump of the stack for the exception by assigning the user " " Debugging programs " for a specific input.

As soon as an exception was found, I removed this user from this destination.

+1
source share

All Articles