Web. config [Ajax Script Error XXXX undefined] When IIS 7 uses Ajax. dll

Source: Internet
Author: User
Web. config needs to change when IIS 7 uses ajax. dll
This problem occurs because the IIS version of the server is IIS7. Therefore, you need to configure IIS6.
<System. webServer>
<Validation validateIntegratedModeConfiguration = "false"/>
<Modules>
<Remove name = "ScriptModule"/>
<Add name = "ScriptModule" preCondition = "managedHandler" type = "System. web. handlers. scriptModule, System. web. extensions, Version = 3.5.0.0, Culture = neutral, PublicKeyToken = 31BF3856AD364E35 "/>
</Modules>
<Handlers>
<Add name = "ajax" verb = "POST, GET" path = "ajax/*. ashx" type = "Ajax. PageHandlerFactory, Ajax"/>
<Remove name = "WebServiceHandlerFactory-Integrated"/>
<Remove name = "ScriptHandlerFactory"/>
<Remove name = "ScriptHandlerFactoryAppServices"/>
<Remove name = "ScriptResource"/>
<Add name = "ScriptHandlerFactory" verb = "*" path = "*. asmx "preCondition =" integratedMode "type =" System. web. script. services. scriptHandlerFactory, System. web. extensions, Version = 3.5.0.0, Culture = neutral, PublicKeyToken = 31BF3856AD364E35 "/>
<Add name = "ScriptHandlerFactoryAppServices" verb = "*" path = "* _ AppService. axd "preCondition =" integratedMode "type =" System. web. script. services. scriptHandlerFactory, System. web. extensions, Version = 3.5.0.0, Culture = neutral, PublicKeyToken = 31BF3856AD364E35 "/>
<Add name = "scriptresource" precondition = "integratedmode" verb = "Get, head" Path = "scriptresource. axd "type =" system. web. handlers. scriptresourcehandler, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/>
</Handlers>
<Defadocument document>
<Files>
<Remove value = "default. aspx"/>
<Remove value = "iisstart.htm"/>
<Remove value = "index.html"/>
<Remove value = "index.htm"/>
<Remove value = "Default. asp"/>
<Remove value = "Default.htm"/>
<Add value = "login. aspx"/>
</Files>
</Defadocument document>
</System. webServer>

Most importantly
<Add name = "ajax" verb = "POST, GET" path = "ajax/*. ashx" type = "Ajax. PageHandlerFactory, Ajax"/>
In system. webServer

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.