我在服务器上面临运行时自定义错误问题
我在服务器上遇到自定义错误问题。请帮我解决
运行时错误
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脚本编程以及出于其他目的的那些页面上。请帮助我......
I'm facing a custom error problem on server.can u plz help me out
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.
this custom error appears only on those pages on them i used java script programing in images and for some other purpose. plz hepl me out....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您临时将显示的 xml 添加到 web.config 中,那么您将看到导致问题的实际异常,这将帮助您识别并修复它。如果您在本地从 Web 服务器计算机查看页面,您还应该能够看到特定的异常,而无需关闭自定义错误模式。
If you temporarily add the xml shown to your web.config then you will see the actual exception causing the problem which will help you identify and fix it. If you view the page from the web server machine locally you should also be able to see the specific exception without turning custom error mode off.