iis7整合模式

来源:互联网 发布:java编程培训班 编辑:程序博客网 时间:2024/04/29 13:50

针对IIS7 win7 or windows 2008)在设定IIS 时,将不需要在将AppPool设定为经典模式(当然原来的经典模式依然支持),

直接走预设值,整合模式(即集成模式),只需要在web.config中添加相应内容。

Web.config添加内容具体如下:

 

<system.webServer>

<handlers>

        //---------------------经典模式下打印功能所需的映射文件配置----------------------------//

           <add name="ActiveReport-64" path="*.ActiveReport" verb="*" modules="IsapiModule" scriptProcessor="%windir%/Microsoft.NET/Framework64/v2.0.50727/aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness64" />

           <add name="ArCacheItem-64" path="*.ArCacheItem" verb="*" modules="IsapiModule" scriptProcessor="%windir%/Microsoft.NET/Framework64/v2.0.50727/aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness64" />

           <add name="rpx-64" path="*.rpx" verb="*" modules="IsapiModule" scriptProcessor="%windir%/Microsoft.NET/Framework64/v2.0.50727/aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness64" />

           <add name="ActiveReport" path="*.ActiveReport" verb="*" modules="IsapiModule" scriptProcessor="%windir%/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />

          <add name="ArCacheItem" path="*.ArCacheItem" verb="*" modules="IsapiModule" scriptProcessor="%windir%/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />

          <add name="rpx" path="*.rpx" verb="*" modules="IsapiModule" scriptProcessor="%windir%/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />

        //---------------------经典模式下打印功能所需的映射文件配置 ----------------------------//

      

 //---------------------整合模式(集成模式)下打印功能所需的映射文件配置 ----------------------------//

  <add name="ActiveReports .ActiveReport" path="*.ActiveReport" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler" resourceType="Unspecified" preCondition="integratedMode" />

      <add name="ActiveReports .rpx" path="*.rpx" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler" resourceType="Unspecified" preCondition="integratedMode" />

      <add name="ActiveReports .ArCacheItem" path="*.ArCacheItem" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler" resourceType="Unspecified" preCondition="integratedMode" />

//---------------------整合模式(集成模式)下打印功能所需的映射文件配置----------------------------//

    

 <add name="ScriptResource.axd_GET,HEAD" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0" />

         <add name="*_AppService.axd_*" path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0" />

         <add name="*.asmx_*" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0" />

</handlers>

 

<validation validateIntegratedModeConfiguration="false" />

    

 //--------------------默认文档配置--------------------//

          <defaultDocument>

                   <files>

                            <remove value="Default.htm" />

                            <add value="Default.htm" />

                   </files>

          </defaultDocument>

  //--------------------默认文档配置--------------------//

 

         </system.webServer>