我在服务器上遇到自定义错误问题。你可以帮我解决
运行时错误
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.
这个自定义错误只出现在它们的页面上我在图像中使用了java脚本编程,并出于其他目的。请告诉我......
答案 0 :(得分:0)
如果您暂时将显示的xml添加到web.config中,那么您将看到导致问题的实际异常,这将有助于您识别和修复它。如果您在本地从Web服务器计算机查看该页面,您还应该能够在不关闭自定义错误模式的情况下查看特定异常。