分享

写回答

发帖

[提问] 我的网站上传文件后访问时提醒如下消息,求助高手

GoDaddy GoDaddy 840 人阅读 | 2 人回复

发表于 2010-11-15 19:08:55 | 显示全部楼层 |阅读模式

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 <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>

回答|共 2 个

sharelai

发表于 2010-11-15 19:30:55 | 显示全部楼层

你先把这个设成<customErrors mode="Off"/>,这样就可以知道是什么错误。
上传文件出错,一般是文件夹权限问题,你在控制面板里的文件管理,设置你上传的文件夹为可写。
RAKSmart

infolocal

发表于 2010-11-16 15:27:28 | 显示全部楼层

回复 1# 的帖子

感谢:sharelai
您需要登录后才可以回帖 登录 | 注册

本版积分规则