解决Coolite.Ext.Web在IIS7.0中的错误

在系统升级到WINDOWS SERVER 2008 R2后IIS也升级到7.0版本,在发布网站后提示错误:EXT未定义。通过分析,发现是再程序中引用了AJAX的缘由,须要在web.config中单独配置,配置的代码以下:web

IIS 6.0:网站

  <system.web>
    <httpHandlers>
      <add path="*/coolite.axd" verb="*" type="Coolite.Ext.Web.ResourceManager" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add name="AjaxRequestModule" type="Coolite.Ext.Web.AjaxRequestModule, Coolite.Ext.Web"/>
    </httpModules>
  </system.web>

IIS 7.0:spa

  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <add name="AjaxRequestModule" preCondition="managedHandler" type="Coolite.Ext.Web.AjaxRequestModule, Coolite.Ext.Web" />
    </modules>
    <handlers>
      <add name="AjaxRequestHandler" verb="*" path="*/coolite.axd" preCondition="integratedMode" type="Coolite.Ext.Web.ResourceManager"/>
    </handlers>
  </system.webServer>
相关文章
相关标签/搜索