启用 ASP.NET 模拟时,异常堆栈跟踪中缺少行号
ASP.NET 2.0 Web 应用程序已使用 PDB 符号进行编译,部署到运行 IIS 6 的服务器。
在 web.config 中,用户模拟已启用:
<identity impersonate="true" />
引发异常时,堆栈跟踪缺少行号,因此很难确定异常的确切位置是从.例如。
System.NullReferenceException:对象 未设置对实例的引用 目的。在 MyApp.ReportingServices.WebForm.DA.AmoRepository.GetDimensions(字符串 透视)
用于访问网站的登录名在服务器上没有特殊权限或组成员身份
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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.