Line numbers missing from exception stack trace when ASP.NET impersonation enabled
问题 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