![](/img/trans.png)
[英]IIS Express 'The specified port is in use' Visual Studio 2015
[英]How can I enable detailed errors in IIS Express from within Visual Studio 2015
使用VS 2015和Firefox浏览器。 当我的代码遇到错误时,我会在“输出”窗口中看到它,但希望在浏览器中看到它。 现在,我得到的只是一个没有堆栈的500错误。
谢谢!
您需要查看一下web.config
的<customErrors />
(下面的示例):
<configuration>
<system.web>
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly">
<error statusCode="500"
redirect="InternalError.htm"/>
</customErrors>
</system.web>
</configuration>
另请参见此先前的SO答案: CustomErrors mode =“ Off”
来源: https : //msdn.microsoft.com/en-us/library/h0hfz6fc(v=vs.71).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.