Microsoft KB Archive/822319

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

Article ID: 822319

Article Last Modified on 2/16/2007

-

APPLIES TO


 * Microsoft ASP.NET 1.0
 * Microsoft ASP.NET 1.1

-





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.



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
 Click Start, and then click Run. In the Open box, type cmd, and then click OK.</li> At a command prompt, locate the following directory path:

\Microsoft.NET\Framework\v1.0.3705

</li> 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

</li> To view the application, type the following URL in Microsoft Internet Explorer:

http://localhost/ScriptMapTest/WebForm1.aspx

</li></ol>

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 &quot;Symptoms&quot; section of this article.

<div class="references_section">