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".
上面是什么问题呢?请高手解析一下

解决方案 »

  1.   

    原因1: web.config 文件不完整.不是合格的asp.net 配置文件.
    解决:  您要检查web.config 是否合格,有时候是粗心,xml文件不完整.导致的问题
    原因2: asp.net版本问题.asp.net有asp.net 1.1和 asp.net2.0 两个版本.
    解决:  请确定您网站asp.net需要 哪个版本支持.选择合适的服务器运行版本.
    我以前在网上见到过的解决方法,你试试看吧!
      

  2.   

    webConfig不完整情况几乎为零。去看看你的环境吧。多数是你的框架安装有问题。还有就是iis配置问题。
      

  3.   

    我之前也遇到了这个问题,我是上传到空间后出现了这个问题,原因是服务器那边没有设虚拟目录
    你先在IIS中浏览看有没有问题,如果没问题,可能就是服务器的问题了;如果有问题那可能就是你程序或者IIS配置有问题了
      

  4.   

    框架是否正确,WEB.config文件问题
      

  5.   

    修改web.config:<customErrors mode="Off" /> 
    然后查看详细错误信息。
    然后再根据详细错误信息来判断错误。你这个错误信息只是告诉了你出错了,但是没有给出详细出错的地方。
      

  6.   

    <system.web>
        <httpRuntime executionTimeout="21600" maxRequestLength="2048000"/>
        <pages>
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
          </controls>
        </pages>
        <compilation debug="true">
    <assemblies>
            <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <!--<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->
            <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
          </assemblies>
          <buildProviders>
            <add extension="*.asbx" type="Microsoft.Web.Preview.Services.BridgeBuildProvider"/>
          </buildProviders>
        </compilation>
        <authentication mode="Windows"/>
        <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
          <error statusCode="403" redirect="NoAccess.htm"/>
          <error statusCode="404" redirect="FileNotFound.htm"/>
        </customErrors>

    </system.web>
    在web.config中添加上面红色部分