上传我的网站时出现运行时错误 [英] run time error when i upload my site

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

问题描述

详细信息:要在远程计算机上查看此特定错误消息的详细信息,请创建< customerrors>位于当前Web应用程序根目录中的web.config配置文件中的标记。这< customerrors>然后,tag应将其mode属性设置为Off。





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>









我的网站在asp.net上运行但是当我上传时我的网站上面会给出上面的错误请帮我





my site run in asp.net but when i upload my site than it will give above error please help me

推荐答案

在web.config中,在system.web部分下面将代码更改为如下所示。这将帮助您查看实际错误。如果您对要发布的服务器具有远程桌面访问权限,请尝试从那里运行该站点,以便能够看到实际错误。



In the web.config, under system.web section change the code to like below. Which will help you in seeing the actual error. In case if you have REmote Desktop Access to the server where you are publishing then try running the site from there where you will be able to see the actual error.

<customErrors mode="Off" />


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

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