注册 登录
编程论坛 ASP.NET技术论坛

求助!大家看一下这是什么错误啊!

发布于 2008-08-20 15:09, 767 次点击
网站刚上传上去不久 就出现这样的错误 是服务器原音 还是网页本身的问题啊
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>


[[it] 本帖最后由 ksni56z 于 2008-8-20 15:12 编辑 [/it]]
3 回复
#2
仰望星空2008-08-20 22:18
这是程序部署时的原因,调整方式主要是看IIS的配置是否正确,以及调整一下web.config文件的配置
#3
仰望星空2008-08-20 22:18
<customErrors mode="Off"/>
改成
<customErrors mode="On"/>
试试
#4
djx5202008-08-25 14:55
是服务器的问题,IIS配置,你叫他们的网管解决,这中问题很正常
1