![如何修改 Web.Config 配置文件?](https://linux22.com/image/1122539/%E5%A6%82%E4%BD%95%E4%BF%AE%E6%94%B9%20Web.Config%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%EF%BC%9F.png)
当我尝试在网上支付时,在“Visa 验证”页面上正确输入了我的密码等后,我收到了以下消息:-
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
有人可以指导我找到解决方案吗?
答案1
Web.config 是一个 IIS 文件,最好的办法是在 Microsoft 相关论坛/邮件列表/支持网站上询问。