其实打开看看就可以了 我还是报错贴出来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>
我还是报错贴出来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>
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>customErrors这一项里面的属性mode改成Off,你就能看到详细的错误信息了
这点错吴我还看的懂,把<<customErrors mode="Off"/>已经改了
还是没有用这个程序在我自己的几个机器上发布都没有问题
还是没有用
=======================>
那最大的可能就是你的web.config所在的文件夹没有被配置为虚拟目录,所以你的设置没起作用,让管理员检查一下虚拟目录配置是否正确。
感谢指点,可是我的发布地址http://211.100.20.184:8001/应该是一个网站地址才对,不可能不是虚拟地址吧....可怜的是今天都休息,没有人在,我想找出问题的原因,周一让管理员直接改...
估计是什么问题~
55555555
我要是能接触到服务器,我就早配置好了,就是看不到服务器的属性,所以就预测错误,然后让管理员去修改.....