我创建了一个asp.net网页,并将其上传到网络服务器上。 [英] I have created an asp.net webpage and have uploaded it onto a webserver.

查看:73
本文介绍了我创建了一个asp.net网页,并将其上传到网络服务器上。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

但是,当我尝试远程查看页面时,我收到有关web.config文件中的customerror标记的错误。该页面在本地工作,没有错误或警告。但是'解决方案'发布到服务器,它显示customErrors标记为'关闭',我已经完成但不起作用,你知道网络服务器是否存在问题或者是什么可能是这里的问题?

错误消息:

'/'应用程序中的服务器错误。运行时错误说明:服务器上发生应用程序错误。此应用程序的当前自定义错误>设置可防止远程查看应用程序错误的详细信息(出于安全原因)。但是,可以通过在本地服务器计算机上运行>的浏览器查看它。



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

However when I try to view the page remotely, I get errors about the customerror tag in the web.config file. The page works locally with no errors or warnings., but the 'solutions' is publish to server its shows customErrors tag to 'Off', which I have done and does not work, do you know is there an issue with the webserver or what could be the problem here?
Error Msg:
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 tag within a "web.config" configuration file >located in the root directory of the current web application. This tag >should then have its "mode" attribute set to "Off".

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>





注意:您看到的当前错误页面可以通过>修改应用程序的>配置标记的defaultRedirect属性来替换为自定义错误页面,以指向自定义错误页面网址。



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 >configuration tag to point to a custom error page URL.

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

推荐答案

这篇关于我创建了一个asp.net网页,并将其上传到网络服务器上。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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