asp.net项目大家帮我挑出错误 ,谢谢你了

来源:百度知道 编辑:UC知道 时间:2024/06/26 01:32:43
我做的望站,原来的服务器上好用,但是换了个服务器 增么会出现这样的错误
大家说说为什么,我应该增么 样 跟空间提供商去讲啊???
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>

新服务器用的IIS可能和你以前的版本不一样,把你的跟文件夹中属性------安全选项卡----添加---ASPNET或NETWORKSERVICE用户,如果两个都有,就都添加,然后再试试看。
再不行就用Gool翻译错误信息再试试,不信还解决不了问题了,呵呵

将 web.config 中 <customErrors mode="RemoteOnly" 中的 mode 改为 Off, 然后再执行试试