Solved the bug that ASP. NET prompts EXT undefined in IIS 7.

Source: Internet
Author: User

[Html]
After the system is upgraded to windows server 2008 R2, IIS is also upgraded to version 7.0. After the website is published, an error is prompted: EXT is not defined. After analysis, it is found that AJAX is referenced in the program. You need to configure it separately in web. config. The configuration code is as follows:

[Html]
For iis 6.0 and earlier



Add the following to

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

Add the following to
 
<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]


From # Define

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.