<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web">
<section name="sanitizer" requirePermission="false" type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit"/>
</sectionGroup>
</configSections>
<appSettings>
<add key="西宁威势电子[www.qhwins.com]:SubTitle" value="企业网站后台管理系统"/>
<add key="FCKeditor:BasePath" value="~/fckEditor/"/>
<add key="FCKeditor:UserFilesPath" value="/UploadFiles/"/>
<add key="西宁威势电子[www.qhit.me]:DBPath" value="\Data\fuck.sys"/>
</appSettings>
<connectionStrings/>
<system.web>
<customErrors mode="Off"/>
<!--<pages validateRequest="false" enableSessionState="true" enableViewStateMac="false" enableViewState="true"/>
<customErrors mode="On" defaultRedirect="404.aspx">
<error statusCode="403" redirect="NoAccess.aspx" />
<error statusCode="404" redirect="404.aspx" />
</customErrors>-->
<pages maintainScrollPositionOnPostBack="true" enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="false">
<controls>
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
</controls>
</pages>
<compilation debug="true" strict="false" explicit="true" defaultLanguage="c#">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
<httpHandlers>
<add path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory" validate="true"/>
<add verb="*" path="LaoGui.aspx" type="ASP.websystem_aspx,WebSystem"/>
<!---解决AJAX 'Sys' is undefined 错误提示 -->
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory"/>
<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"/>
<!---解决AJAX 'Sys' is undefined 错误提示 -->
</httpHandlers>
<httpModules>
<add type="qhwins.SEO.HttpModule" name="HttpModule"/>
<add name="MagicAjax" type="MagicAjax.MagicAjaxModule, MagicAjax"/>
</httpModules>
</system.web>
<system.webServer>
<handlers>
<add name="*.html" path="*.html" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
</handlers>
</system.webServer>
</configuration>
如果QHWINS.SEO模块报错,则将C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025 的两个DLL文件复制到WEB目录下BIN目录中即可。
主要看下面的几行,在IIS7上配置好后,把代码分离出来,方法不是很难,但是每次都要去IIS7上配置一下,麻烦,所以记在这里
<system.webServer>
<handlers>
<add name="*.html" path="*.html" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
</handlers>
</system.webServer>