在堆栈跟踪,即使IIS不给行号目前PDB [英] IIS not giving line numbers in stack trace even though pdb present
问题描述
Web配置有调试=真实,该项目是一个调试版本和PDB文件存在于bin目录,但是当一个异常被抛出我没有在我的堆栈跟踪得到的行号。
Web config has debug=true and the project is a debug build and the pdb files are present in the bin directory, but I do not get line numbers in my stacktrace when an exception is thrown.
正常工作与本地IIS /卡西尼但不能在我们的测试IIS服务器。 ?是否有我可能会丢失一些明显的设置
Works fine with local IIS/Cassini but not on our test IIS servers. Is there some obvious setting that I might be missing?
推荐答案
原来使用模拟的web.config中:
It turns out using impersonation with the web.config:
<identity impersonate="true" />
导致在堆栈跟踪的行号的损失。我把入口了,我的行号回来了,把它放回去,并在数小时(Kerberos票据提神?)后的行号又消失了。
causes the loss of the line numbers in the stacktrace. I took the entry out and my line numbers returned, put it back and after a few hours (Kerberos ticket refreshing?) the line numbers disappeared again.
不知道为什么模仿影响堆栈跟踪,但它 - 会很高兴有人确认/解释这...
Not sure why impersonation affects the stack trace but it does - would be happy to have someone confirm / explain this...
这篇关于在堆栈跟踪,即使IIS不给行号目前PDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!