2

我在带有框架 4 的 iis7 上将应用程序转换为带有框架 4.5 的 iis 8.5,但在 web.config 的一部分上给了我一个错误:

无法读取配置节“处理程序”,因为它缺少节声明

网络配置:

<handlers>
  <add verb="*" path="s/*" type="shortenDownload.mydownload" validate="true"/>
  <add verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/>
  <add verb="*" path="download/*/*/*.*" type="downloadHelper.mydownload" validate="true"/>
  <add verb="*" path="downloadPhoto/*/*/*.*" type="downloadPhotoHelper.mydownload" validate="true"/>
  <add verb="GET,HEAD,POST" path="*.asbx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
  <add verb="GET" path="SearchSiteMaps.axd" type="Microsoft.Web.Preview.Search.SearchSiteMapHandler" validate="true"/>
  <add verb="*" path="Diagnostics.axd" type="Microsoft.Web.Preview.Diagnostics.DiagnosticsHandler" validate="true"/>
  <remove verb="*" path="*.asmx"/>
  <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>

该错误提供 IIS 管理器或浏览器。

4

0 回答 0