运行网站时出现运行时错误 [英] Runtime error when run the website

查看:117
本文介绍了运行网站时出现运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,当我从somee.com网站托管运行网站时有这个错误



 <! -     Web.Config配置文件   - >   

< configuration >
< system。网络 >
< customErrors mode = / >

注意:您看到的当前错误页面可以替换为自定义错误pag e通过修改应用程序的< customerrors > 配置标记指向自定义错误页面URL。

<! - Web.Config配置文件 - >

< 配置 >
< system.web >
< customErrors mode = RemoteOnly defaultRedirect = mycustompage.htm / >





这是我的webconfig: -



我尝试过:



<预郎= 文本> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

解决方案
这不是一个错误。这告诉你,抛出了一个错误,你当前的站点配置正在隐藏它。它还告诉你到底该做什么,所以你看到一个实际的错误页面,而不是隐藏错误的页面。



如果你有一个customerrors标签,那就是打开,你必须提供一个HTML页面来显示错误信息。 customerror标记上的文档是此处 [ ^ ]。


<! - Web.Config配置文件 - >



< configuration>

< ; system.web>

< customErrors mode =RemoteOnlydefaultRedirect =mycustompage.htm/>


hello i have this error when i run the website from somee.com web hosting

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    
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"/>



here is my webconfig:-

What I have tried:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

解决方案

That's not an error. That's tell you that an error was thrown and your current site configuration is hiding it from you. It's also telling you exactly what to do so you see an actual error page instead of the page that's hiding the error.

If you're got a customerrors tag and it's turned on, you have to supply an html page to show the error information. Docs on the customerror tag are here[^].


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>


这篇关于运行网站时出现运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆