首先你的web.config的定义把错误信息隐藏了,看不出是否是代码问题但是一般这种问题都是IIS的配置问题
请重新配置虚拟目录和权限

解决方案 »

  1.   

    <?xml version="1.0"?>
    <!-- 
        娉ㄦ剰: 闄や簡鎵嬪姩缂栬緫姝ゆ枃浠朵互澶栵紝鎮ㄨ繕鍙互浣跨敤 
        Web 绠$悊宸ュ叿鏉ラ厤缃簲鐢ㄧ▼搴忕殑璁剧疆銆傚彲浠ヤ娇鐢?Visual Studio 涓殑
         鈥滅綉绔欌€?>鈥淎sp.Net 閰嶇疆鈥濋€夐」銆?
        璁剧疆鍜屾敞閲婄殑瀹屾暣鍒楄〃鍦?
        machine.config.comments 涓紝璇ユ枃浠堕€氬父浣嶄簬 
        \Windows\Microsoft.Net\Framework\v2.x\Config 涓?
    -->
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <appSettings>
    <add key="CrystalImageCleaner-AutoStart" value="true"/>
    <add key="CrystalImageCleaner-Sleep" value="60000"/>
    <add key="CrystalImageCleaner-Age" value="120000"/>
        <add key="pagedSPName" value="P_GetPagedOrders2005"/>
      </appSettings>
    <connectionStrings>
    <add name="SQLCONNECTIONSTRING" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|User.MDF"/>
    <add name="Personal" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Personal.mdf" providerName="System.Data.SqlClient"/>
    </connectionStrings>
    <system.web>
    <!-- 
                璁剧疆 compilation debug="true" 灏嗚皟璇曠鍙锋彃鍏?
                宸茬紪璇戠殑椤甸潰涓€備絾鐢变簬杩欎細 
                褰卞搷鎬ц兘锛屽洜姝ゅ彧鍦ㄥ紑鍙戣繃绋嬩腑灏嗘鍊?
                璁剧疆涓?true銆?
            -->
    <pages styleSheetTheme="White"/>
    <authentication mode="Forms">
    <forms name="Weber" protection="All" timeout="10" defaultUrl="~/index.aspx"/>
    </authentication>
    <roleManager enabled="true"/>
    <compilation debug="true">
    <assemblies>
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
    <!--
                閫氳繃 <authentication> 鑺傚彲浠ラ厤缃?ASP.NET 浣跨敤鐨?
                瀹夊叏韬唤楠岃瘉妯″紡锛?
                浠ユ爣璇嗕紶鍏ョ殑鐢ㄦ埛銆?
            -->
    <!--
                濡傛灉鍦ㄦ墽琛岃姹傜殑杩囩▼涓嚭鐜版湭澶勭悊鐨勯敊璇紝
                鍒欓€氳繃 <customErrors> 鑺傚彲浠ラ厤缃浉搴旂殑澶勭悊姝ラ銆傚叿浣撹鏉ワ紝
                寮€鍙戜汉鍛橀€氳繃璇ヨ妭鍙互閰嶇疆
                瑕佹樉绀虹殑 html 閿欒椤?
                浠ヤ唬鏇块敊璇爢鏍堣窡韪€?        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            -->
    </system.web>
    <!--
      <system.web>
        <httpHandlers>
          <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
        </httpHandlers>
      </system.web>
      -->
    <!-- <location path="Admin">
        <system.web>
          <authorization>
            <allow roles="Administrators"/>
            <deny users="*"/>
          </authorization>
        </system.web>
      </location>-->
    </configuration>