高分求助,解决下列问题!
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>
问题点数:100、回复次数:9Top
1 楼sqhua(拉长弓兮射天狼)回复于 2003-09-03 11:58:07 得分 5
一般重启电脑就OKTop
2 楼cnhgj(戏子) (没时间练太极)回复于 2003-09-03 12:02:39 得分 15
把web.config里的
<customErrors mode="RemoteOnly"设成
<customErrors mode="Off"
然后再上传运行,看看是哪里出错,找出错误再改即可Top
3 楼acewang(龍芯*Inside!)回复于 2003-09-03 12:03:33 得分 40
你放的文件夹是不是改名或者删除了,重新定义下虚拟目录试试看。Top
4 楼chnking(kent)回复于 2003-09-03 12:17:34 得分 20
这表示你的程序出现错误了,而你在web.config的设置估计是:
<customErrors mode="On">
所以出现错误后你的本机也看不到错误细节,你改成折这样:
<customErrors mode="RemoteOnly">就能在你的本机上看到出错原因了
Top
5 楼cuike519(I will be back!)回复于 2003-09-03 12:28:51 得分 20
建议你搞一个错误页专门用来处理可预料和不可预料的错误!
现在你无法看到错误信息你可以把<customErrors mode="On">改成
<customErrors mode="Off" />个就可以了!
这样你就可以看到错误的详细信息!也就是在debug的时候可以看到的!Top
6 楼laughingrat(傲笑红尘)回复于 2003-09-03 13:16:44 得分 0
谢谢诸位大哥,我的情况是这样的,文件是放在服务器端的,我在本机上调试。可是为什么会出错呢?
Top
7 楼laughingrat(傲笑红尘)回复于 2003-09-03 13:18:09 得分 0
我在本机上调试一切ok!然后原原本本拷贝到服务器端的。Top
8 楼zhxhjj()回复于 2003-09-03 13:23:27 得分 0
gzTop
9 楼laughingrat(傲笑红尘)回复于 2003-09-03 13:45:48 得分 0
呵呵,解决了!我将本站点的上一级目录设成了根目录,出现上述问题。于是我后来加了一个虚拟目录,一切ok了。谢谢大家的关注。给分!Top




