alexmen

专注.net软件开发,项目管理体系PMBOK.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

一、Web.config配置解决办法

    直接在Web.config下 加入:

   1.<configSections>
    <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
      </configSections>

   2.<httpModules>
         <add type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" name="UrlRewriter" />
    </httpModules>

   3.<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <handlers>
            <add name="woool1" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
         <add name="woool" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
    </handlers>
   </system.webServer>

说明:如果是IIS7 和 Framework 2.0时,不需要红色字体部分,把v4.0.30319改成对应的2.0的版本号。

        如果是IIS7 和 Framework 4.0时,红色字体部分是必须的。

二、 手动在IIS7下添加 步骤如下:

  1.打开IIS7窗口下的  处理程序映射

2.在处理程序映射下添加 *.html和*的映射

posted on 2011-08-11 23:29  alexmen  阅读(6327)  评论(0编辑  收藏  举报