当前位置:编程学习 > C#/ASP.NET >>

请高手指点一下:(.net)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>
 

--------------------编程问答-------------------- 你用03还是05做的项目
看你服务器的IIS设置为ASP.NET2.0了吗 --------------------编程问答-------------------- 用05做的。服务器的IIS设置为ASP.NET2.0了。
网站可以出来,就是添加信息提交出现问题。
谢谢你,再帮帮我。 --------------------编程问答-------------------- 把问题发出来看看,是不是关于数据库的 --------------------编程问答-------------------- <customErrors mode="Off"/> 
将off设置为on,然后在运行一下看看,这样就能看到具体的错误内容了,你这个现在不好看出是哪里出错了 --------------------编程问答-------------------- 按楼上说的,先把web.config中设置<customErros mode="On" /> ,使可以看到具体的出错信息,RemoteOnly只有在服务器上才可以看到具体的错误信息。
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,