解決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>
相關文章
相關標籤/搜索