iis7整合模式

针对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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值