为何这个Asp.net脚本在我的本机上运行没有任何问题,但放到服务器上后有时会显示下面的错误提示了.是Web.Config配置不对吗还是IIS设置有问题?可是服务器上的和本机的一样啊?望高人指点迷精!
错误信息如下: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>
 

解决方案 »

  1.   

    任何错误都会导致这样的问题

    <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>
    看具体哪出错的
      

  2.   

    去localhost的机器上运行,看具体错
      

  3.   

    localhost没有错误,是IIS问题吗?
      

  4.   

    现在很多网站说支持.NET 
    可是程序在本机调试没问题放到服务器后就报runtime 错误
    或者是script error 
    估计都是服务商那边设置问题,
      

  5.   

    我现在也碰到这个错误啊,不过我的问题发生时,我只是更新了 bin目录下的.dll文件,请问这个是否发生这个错误的原因呢?