ASP.NET使用Coolite.Ext.Web.dll,显示ext"未定义"的解决方法

开发系统时用到Coolite.Ext.Web.dll,起初使用Windows Server 2003进行的开发,测试都没有问题。后来装了Windows Server 2008,再进行开发此时是,总显示ext 未定义。

解决方法:

web.config中关于Coolite.Ext.Web.dll配置,还需要补充system.webServer节中的相关配置。

FOR IIS 6.0 and earlier 

Add the following to <httpModules> section under <system.web> section in web.config:

<add name="AjaxRequestModule" type="Coolite.Ext.Web.AjaxRequestModule, Coolite.Ext.Web" />

Add the following to <httpHandlers> section under <system.web> section in web.config:

<add path="*/coolite.axd" verb="*" type="Coolite.Ext.Web.ResourceManager" validate="false" />

FOR IIS 7.0

Add the following to <system.webServer>

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

 

posted @ 2012-04-13 17:56  linyujade  阅读(384)  评论(0编辑  收藏  举报