Asp.net Ajax-related error handling

Source: Internet
Author: User
Recently, the project has a pop-up window function that needs to be implemented. After checking that Asp.net Ajax is easy to implement, it is implemented using Asp.net Ajax ajaxcontroltoolkit.
There were three errors during implementation, which were somewhat depressing. However, based on the reason, the problem was finally found.
1. Components in the ajaxcontroltoolkit cannot be added to the page. This is the reason for my project. A "memory error" is displayed ".
Solution: reference the ajaxcontroltoolkit. dll file to the project first. Add the component to the page instead of the Toolbox.
2. ajaxcontroltoolkit undefined error.
Solution: Find the reason for this error: Server. to. the modification on the next page will be directed to the added page, so the error of the ajaxcontroltoolkit is undefined. use response. redirect () solution.
3. SYS. undefined Error
Solution: Web. config in Asp.net is not configured <Remove verb = "*" Path = "*. asmx"/>
<Add verb = "*" Path = "*. asmx "Validate =" false "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/>
<Add verb = "*" Path = "* _ appservice. axd "Validate =" false "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/>
<Add verb = "Get, head" Path = "scriptresource. axd "type =" system. web. handlers. scriptresourcehandler, system. web. extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "Validate =" false "/>
</Httphandlers>
<Httpmodules>
<Add name = "scriptmodule" type = "system. Web. Handlers. scriptmodule, system. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35"/>
</Httpmodules>

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.