当前位置:web 服务器 > IIS >>

解决ASP.NET 在IIS 7中提示EXT未定义的错误

[html]
    在系统升级到WINDOWS SERVER 2008 R2后IIS也升级到7.0版本,在发布网站后提示错误:EXT未定义。经过分析,发现是再程序中引用了AJAX的原因,需要在web.config中单独配置,配置的代码如下: 
  
[html]
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> 
[html]
<img src="/2012/0224/20120224090702506.gif" alt="" /> 


摘自 #Define
补充:Web开发 , ASP.Net ,
Apache
IIS
Nginx
Tomcat
如果你遇到web 服务器难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,