日期:2014-05-17  浏览次数:20580 次

服务器报错,在线等求解


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>
 

我的webConfig

<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
</configuration>



少量数据没有错误,但是数据量多了就会报错。 程序是.net 4.0的,iis配置也是4.0

在本地用vs启动测试,没有问题。


服务器 server C# asp.net iis

------解决方案--------------------
复制人家的一个web.config过来算了,加上你需要的东西。
------解决方案--------------------

详细信息:若要使在远程计算机上查看此特定错误消息的详细信息,请创建一个<customErrors>的标签内的“web.config”配置文件位于当前Web应用程序根目录下的。应该有这<customErrors>标记的“mode”属性设置为“关”。

不都已经提示了吗...
------解决方案--------------------
帮顶!
------解决方案--------------------
详细信息:若要使在远程计算机上查看此特定错误消息的详细信息,请创建一个<customErrors>的标签内的“web.config”配置文件位于当前Web应用程序根目录下的。应该有这<customErrors>标记的“mode”属性设置为“关”。

不都已经提示了吗.
------解决方案--------------------
IIS删了,重新建一下试试
------解决方案--------------------