Asp. NET generates EURL.AXD HTTP exception error

Source: Internet
Author: User

After both ASP.net 2.0 and ASP.net 4.0 are enabled in IIS6, the Web site program may have the following error: "System.Web.HttpException:Path '//eurl.axd/' is not found." ”

The reason for the error is that when ASP.net detects that the Web site is configured to use ASP.net 4.0, the local ASP.net 4.0 component passes an extensible URL to the ASP.net management program for further processing. However, if a Web site below asp.net 4.0 is configured to use ASP.net 2.0 to handle URLs that cannot be extended, the URL's modification results include the string "Eurl.axd", and the modified URL is sent to the ASP.net 2.0 application.

"Eurl.axd" is not recognized in ASP.net 2.0. So ASP.net 2.0 will try to find a file named "Eurl.axd" and execute it. Because there is no such file, the request fails, and the HTTP exception throws an error with the string "Eurl.axd".

There are three ways to solve this problem:

1. If the website program does not need to asp.net 4? 0 support, then you can configure the site directly using ASP.net 2.0.

2. If the website program needs to asp.net 4? 0 support, you will need to move the virtual directory using ASP.net 2.0 under the site to another site.

3. If the above two methods do not apply to your actual situation, then you can only use this method:

Open the registry to find "hkey_local_machinesoftwaremicrosoftasp.net4.0.30319.0" and add a key value named "Enableextensionlessurls" with a key value of type "DWORD". and set the value to "0". Then run "IISRESET" in cmd and restart IIS to read the registry modified content. Note: This modification is to close asp.net 4? 0 to the no Extension URL processing, if this key value set to "1" open.

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.