<configSections>
    <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>
  <appSettings>
    <add key="dataRe" value="hs_"/>
    <add key="WebDAL" value="Huisin.SQLServerDAL"/>
    <add key="mssql" value="1"/>   
  <!--是否允许匿名参加访谈 0:不允许,  1:允许 -->
  <add key="AllowAnonymous" value="0"/>
    <!--需要屏蔽的文字,用逗号分隔开-->
    <add key="ShieldWord" value="哈哈"/>
    <add key="connstring" value="server=192.168.0.166;uid=sa;pwd=123;database=ltest;Enlist=true;Pooling=true;Max Pool Size=300;Min Pool Size=0;Connection Lifetime=300;packet size=1000"/>
    <add key="TermDay" value="20"/>
    <add key="FirstDay" value="15"/>
    <add key="SecondDay" value="30"/>
  <add key="conncushion" value="server=192.168.0.166;uid=sa;pwd=123;database=ltest;"/>
  <add key="VodfolderName" value=""/>
  <add key="VodExt" value="avi,mpg,mpeg,asf,wmv,ra,ram,rm,rmvb"/>
  <add key="DownExt" value="rar,zip,txt,doc"/>
  <add key="PicExt" value="gif,jpg,png"/>   
  </appSettings>
  <connectionStrings>
    <!--<add name="Huisin" connectionString="server=192.168.0.47;uid=sa;pwd=zxcvbnm;database=DYGOVCMS50;" />
    <add name="HelpKey" connectionString="server=192.168.0.47;uid=sa;pwd=zxcvbnm;database=DYGOVCMS50;" />
    <add name="Collect" connectionString="server=192.168.0.47;uid=sa;pwd=zxcvbnm;database=DYGOVCMS50;" />
  <add name="hfrx" connectionString="server=192.168.1.22;uid=sa;pwd=sa;database=dongyinginvestment"/>
    <add name="dycg" connectionString="server=192.168.1.22;uid=sa;pwd=sa;database=dongyinginvestment"/>
  <add name="ConnStr" connectionString="server=192.168.0.47;uid=sa;pwd=zxcvbnm;database=DYGOVCMS50;"/>-->
    <add name="invest" connectionString="server=192.168.0.166;uid=sa;pwd=123;database=ltest;"/>
    <add name="Huisin" connectionString="server=192.168.0.166;uid=sa;pwd=123;database=ltest;"/>
    <add name="HelpKey" connectionString="server=192.168.0.166;uid=sa;pwd=123;database=ltest;"/>
    <add name="Collect" connectionString="server=192.168.0.166;uid=sa;pwd=123;database=ltest;"/>
    <add name="hfrx" connectionString="server=192.168.0.166;uid=sa;pwd=123;database=ltest"/>
    <add name="dycg" connectionString="server=192.168.0.166;uid=sa;pwd=123;database=ltest"/>
    <add name="ConnStr" connectionString="server=192.168.0.166;uid=sa;pwd=123;database=ltest;"/>
  </connectionStrings>
  <system.web>
    <httpHandlers>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
      
      <!-- Register the ajax handler -->
      <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/>
  <add verb="POST,GET" path="AjaxPro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
    </httpHandlers>
    <httpModules>
      <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
    </httpModules>
    <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="51400" executionTimeout="60"/>
    <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
    <!-- 
            设置 compilation debug="true" 将调试符号插入
            已编译的页面中。但由于这会 
            影响性能,因此只在开发过程中将此值 
            设置为 true。
     -->
    <compilation debug="true">
      <assemblies> 
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
      
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
    </compilation>
    <!--
            是否检测表单FORM值里面有非法字符
      -->
    <pages validateRequest="false"/>
    <!--
            通过 <authentication> 节可以配置 ASP.NET 使用的 
            安全身份验证模式,
            以标识传入的用户。 
        -->
    <authentication mode="Windows"/>
    <!--
            如果在执行请求的过程中出现未处理的错误,
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。
     
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
     -->
    <xhtmlConformance mode="Legacy"/>
  </system.web>
  <system.webServer>
  <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
           type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
           type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </handlers>
  </system.webServer>
  <!--以下请不要修改,否则将造成连接找不到的问题-->
  <rewriter>
    <!--这里的user目录请和appSettings节点的dirUser保持一致-->
    <rewrite url="~/user/showuser-(.+).aspx" to="~/user/showuser.aspx?uid=$1"/>
    <rewrite url="~/content-(.+).aspx" to="~/Content.aspx?id=$1"/>
    <rewrite url="~/list-(.+).aspx" to="~/list.aspx?id=$1"/>
    <rewrite url="~/special-(.+).aspx" to="~/special.aspx?id=$1"/>
    <rewrite url="~/down-(.+).aspx" to="~/down.aspx?id=$1"/>
    <rewrite url="~/history-(.+).aspx" to="~/history.aspx?id=$1"/>
    <rewrite url="~/page-(.+).aspx" to="~/page.aspx?id=$1"/>
  </rewriter>
用这个web.Config配置文件,在页面上打<asp:ScriptManager> 会有错误,少了哪没有配置上啊,帮帮忙

解决方案 »

  1.   

    直接添加ajax Dll 引用 就好了啊 而且这个 <asp:ScriptManager> 如果你用的是VS2008 的话 都自带有这个控件
      直接拖出去用就行了  
      

  2.   

    一拖上去,他自动会更改web.config吧,不需要自己去设置的。
      

  3.   

    我是改以前的程序的,之前建 的工程不是在Ajax框架上做的。所以要改Web.Config
      

  4.   

    报错就让它报吧,能运行就行了,能运行就表示IDE还没反应过来,不能运行就说明Ajax的版本出现错误了,IDE使用的版本和项目使用的不匹配,IDE的需要重装
      

  5.   

    ...我重新引用了一下.dll就好用了。。真是奇怪