PRB: "HTTP/1.1 500 Internal Server Error" Error Message When You Have Multiple ASP.NET Applications That Use the Same Application Pool with Different Script-Mapped Versions

Article translations Article translations
Article ID: 822319 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

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

STATUS

This behavior is by design.

MORE INFORMATION

Create a New ASP.NET 1.1 Web Application

  1. In Windows Server 2003, start Microsoft Visual Studio .NET 2003.
  2. Create a new ASP.NET Web application project by using Microsoft Visual Basic .NET or Microsoft Visual C# .NET. Name the project as ScriptMap10. By default, WebForm1.aspx is created.
  3. On the Build menu, click Build Solution.
  4. Close the Visual Studio IDE.

Configure the Script Map of the Application to ASP.NET 1.0

  1. Click Start, and then click Run.
  2. In the Open box, type cmd, and then click OK.
  3. At a command prompt, locate the following directory path:
    %windir%\Microsoft.NET\Framework\v1.0.3705
  4. To configure the application to ASP.NET 1.0 in Microsoft Internet Information Services (IIS), type the following command:
    aspnet_regiis -s w3svc/1/root/ScriptMapTest
  5. To view the application, type the following URL in Microsoft Internet Explorer:
    http://localhost/ScriptMapTest/WebForm1.aspx

Create a New ASP NET 1.1 Application

  1. Start Visual Studio .NET 2003.
  2. On the File menu, point to New, and then click Project.
  3. Type http://localhost/AppTest, and then click OK.

    You may notice the error that is described in the "Symptoms" section of this article.

REFERENCES

For more information about application pools, visit the following Microsoft Web site:
Configuring Application Pools
http://technet2.microsoft.com/WindowsServer/en/library/c7f09f1c-b238-42a4-9d57-c5732485eba91033.mspx?mfr=true
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
816782 HOW TO: Configure Different Versions of an ASP.NET Application Running on the Same Web Server

817265 HOW TO: Set Up Multiple User Debugging in Semi-Isolated Mode Under Internet Information Services (IIS) 6.0

Properties

Article ID: 822319 - Last Review: February 16, 2007 - Revision: 3.4
APPLIES TO
  • Microsoft ASP.NET 1.0
  • Microsoft ASP.NET 1.1
Keywords: 
kbconfig kbdeployment kbwebforms kbprb KB822319

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com