遇到一个奇怪问题,在web.config中无论怎么设置customErrors,都不起作用,即使设置为<customErrors mode="Off">,显示的也是customErrors。
在网上搜索到“Why I am not able Turn Off CustomErrors? ”,才知道原来是在machine.config中设置了<deployment retail="true"/>引起的,设置为<deployment retail="false"/>问题就解决了。