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

来源:互联网 发布:手机文件解压软件 编辑:程序博客网 时间:2024/04/29 21:33

开发系统时用到Coolite.Ext.Web.dll,起初使用XP进行的开发,测试都没有问题。后来装了Windows7,再进行开发此时是,总显示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>
原创粉丝点击