行号从异常堆栈跟踪丢失时,ASP.NET模拟启用 [英] Line numbers missing from exception stack trace when ASP.NET impersonation enabled

查看:308
本文介绍了行号从异常堆栈跟踪丢失时,ASP.NET模拟启用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是ASP.NET 2.0 Web应用程序已编译的PDB符号,部署到一个服务器上运行IIS 6。

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

在web.config中,用户模拟启用:

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:对象
  未设置为一个实例
  目的。在
  MyApp.ReportingServices.WebForm.DA.AmoRepository.GetDimensions(字符串
  透视图)

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.

推荐答案

我设法通过分配的调试程序用户权限指派给特定登录。

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.

这篇关于行号从异常堆栈跟踪丢失时,ASP.NET模拟启用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆