我用vs2005开发的一个asp.net 2.0程序,在本机调整无问题,用“发布网站”后,把它放到.net2.0的服务器中就出现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> 
如何检查错误???

解决方案 »

  1.   

    IIS没设置好,看下IIS 属性 里面的 ASP.NET 是否设置为 2.0.0.527什么的还有你的程序必须在IIS中为一个虚拟目录或者网站 不能简单的放到一个文件夹中
      

  2.   

    环境不同,根据提示把Web.Config文件修改一下就会显示错误代码
    <customErrors mode="Off"/> 
      

  3.   

    你可以去看看属性设置对了没Internet信息服务->找到你的网站(右键->属性)->ASP.net->ASP.net版本 看看里面的版本对了没有
      

  4.   

    有按照提示信息修改Web.Config么?
      

  5.   

    是IIS设置问题,属性没设置对,也不一定是版本没设置好。可能还有别的因素没设置,才会出现这样的错误。建议楼主将IIS的属性,权限等重新设置一遍