IIS 发布网站 显示RunTime ERROR 求解答

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>

在服务器装了asp。net做的系统,一台笔记本和一个台式机,其中笔记本和台式机进行基本信息的添加的时候是可以都正常的,但是录取表单记录的时候,台式机是正常的,而笔记本就报了上面的错误,求大神告知到底是什么原因,现在很是纠结啊,如果服务器上面有什么设置错误,台式机应该也会出同样的错

在Web.config中添加
<configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>

然后再运行一下,看一下是哪里报错了,或者到服务器上,打开“事件查看器”,看哪里报错。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-10-12
先把配置文件的异常报错打开。这样你可以知道错在哪里了。
相似回答