Http exception eurl.axd error message solution

  

After both ASP.NET 2.0 and ASP.NET 4.0 are enabled in IIS6, the website program may have the following error: "System.Web.HttpException: Path '//eurl .axd/'was 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 native ASP.NET 4.0 component passes a URL that cannot be extended. Go to the ASP.NET hypervisor for further processing. However, if a website lower than ASP.NET 4.0 is configured to use ASP.NET 2.0 and the URL that cannot be extended is processed, the URL will be modified to include the string "eurl.axd" and the modified URL will be sent. Go to an ASP.NET 2.0 application.

In ASP.NET 2.0, "eurl.axd" is not recognized. 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 will fail, the Http exception will throw an error with the string "eurl.axd".

There are three ways to solve this problem:

1. If the website program does not require ASP.NET 4.0 support, you can directly configure the website to use ASP.NET 2.0.

2. If the website program requires ASP.NET 4.0 support, you need to move the virtual directory using ASP.NET 2.0 to other websites.

3. If the above two methods are not suitable for your actual situation, then you can only use this method:

Open the registry and find "HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft \\\\ASP.NET\\\\4.0.30319.0", add a key value named "EnableExtensionlessUrls" of type "DWORD", and set the value to "0". Then run "IISRESET" in cmd and restart IIS to read the modified contents of the registry. Note: This modification is to close the processing of ASP.NET 4.0 to non-extended URL. If this key is set to "1", it will be enabled.

Copyright © Windows knowledge All Rights Reserved