<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="SQLCONNECTIONSTRING" value="data source=alms-0us4kp2e43;uid=sa;pwd=;database=cs1;pooling=true"></add>
</appSettings>
<system.web>
<compilation defaultLanguage="c#" debug="true" />
<pages buffer="true" enableViewStateMac="false" smartNavigation="false" validateRequest="false" />
<customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.aspx"></customErrors>
<authentication mode="Windows" />
///处理上载文件的大小和上载时间限制
<httpRuntime maxRequestLength="50000" useFullyQualifiedRedirectUrl="true" executionTimeout="300"></httpRuntime>
<authorization>
<allow users="*" />
</authorization>
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
<sessionState mode="InProc" timeout="120" /> //Session变量的设置
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
</configuration>

解决方案 »

  1.   


    ///处理上载文件的大小和上载时间限制
    这种注释删掉试试呢?
    xml里不这么加注释吧
    <!-- 处理上载文件的大小和上载时间限制 -->
      

  2.   

    <!--  身份验证 
              此节设置应用程序的身份验证策略。可能的模式是“Windows”、“Forms”、
              “Passport”和“None”
        -->
        <authentication mode="Windows" /> 
    好象是iis的配置问题。这个配置没看出来什么问题。
      

  3.   

    <authentication mode="Windows" />
    如果你新建一个工程,这个就是默认的配置,如果这里都出错,可能是你的IIS问题
      

  4.   

    同意  : liuyong_lll(孤醉) ( ) 说的!!!