HTTP:/1.1 500 Internal Server Error

HTTP:/1.1 500 Internal Server Error

 

If you are running two versions of ASP.NET, you may get HTTP:/1.1 500 Internal Server Error when creating a new Web project or opening an existing Web project in Visual Studio.

 

This problem may occur when IIS is not sure what version of ASP.NET to use or where to locate ASP.NET files. One of the following solutions should fix the problem.

 

Solution 1.

 

  1. Remove web.config file from inetpub/wwwroot directory
  2. Go to IIS, Right click on Default web site / All tasks / Check server extensions and let it run
  3. Reset IIS by right click on IIS or call iisreset from Run command

 

Solution 2.

 

  1. Install ASP.NET again using the following command from your Run command: C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe –I
    Make sure to change the windows folder and ASP.NET version folder with the version what you want to install
  2. Reset IIS

 

Solution 3. Applies to Windows Server 2003

Note: This is a Microsoft KB article:

 

When you try to create a new Microsoft ASP.NET 1.1 application after you change the script mapping of the existing ASP.NET 1.1 Web application to ASP.NET 1.0 on a Microsoft Windows Server 2003-based computer, you may receive the following error message:

The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/822319ev1'. 'HTTP/1.1 500 Internal Server Error'.

CAUSE

This issue occurs because Windows Server 2003 does not allow two versions of ASP.NET to run in the same application pool.

WORKAROUND

To work around the problem, do one of the following:

Restart the IIS before you create a new ASP.NET 1.1 application. At the command prompt, type the following command: iisreset  

OR -

Create an ASP.NET application in a separate application pool. Create the script-mapped application (ASP.NET 1.0) in a separate application pool -- for example, in the ScriptMapappPool application pool. Then, create a new ASP.NET 1.1 application in an application pool other than ScriptMapappPool. For more information about how to create an application pool, visit the following Microsoft Web site: Configuring Application Pools http://msdn2.microsoft.com/en-us/library/1kdfe21k(VS.80).aspx  


Similar Articles
Mindcracker
Founded in 2003, Mindcracker is the authority in custom software development and innovation. We put best practices into action. We deliver solutions based on consumer and industry analysis.