Microsoft KB Archive/811123

= &quot;'VJ#' is not a supported language&quot; error message after upgrade to Windows Server 2003 =

Article ID: 811123

Article Last Modified on 1/10/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual J# .NET 2003 Standard Edition

-



SYMPTOMS
When you upgrade your operating system from Microsoft Windows 2000 Advanced Server to Microsoft Windows Server 2003, and then you run a Web application by using Microsoft Visual J# .NET, you may receive the following error message:

'VJ#' is not a supported language.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: 'VJ#' is not a supported language.



CAUSE
The Microsoft .NET Framework version 1.1 is installed when you upgrade Microsoft Windows Server 2000 to Microsoft Windows Server 2003. When you upgrade to Windows Server 2003, all the Web applications use .NET Framework version 1.1. By default, the Machine.config file for the .NET Framework version 1.1 does not have entries for Visual J# .NET.



RESOLUTION
To resolve this problem, do one of the following:

Method 1
Install the Visual J# .NET 1.1 Redistributable package. To download the Visual J# .NET 1.1 Redistributable package, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyID=e3cf70a9-84ca-4fea-9e7d-7d674d2c7ca1&DisplayLang=en

Method 2
Configure the .NET Framework version 1.0 for all the ASP.NET Web applications in your Web root folder (or the folder where they are located, if you have put them in a different folder). To do this, follow these steps:  Open the Visual Studio .NET command prompt. Change the directory to  \Microsoft.NET\Framework\v1.0.3705. Type the following command to install the script maps that point to ASP.NET 1.0.3705:

Aspnet_regiis -s

For example, type the following:

Aspnet_regiis -s W3SVC/1/ROOT/

Note Web virtual servers (Web sites) are identified in the metabase by their index numbers. For example, the first Web server is number 1 and the second Web server is number 2.



STATUS
This behavior is by design.



Steps to reproduce the behavior

 * 1) On a computer running Windows 2000 Advanced Server, install Visual Studio .NET 2002.
 * 2) Install Visual J# .NET 1.0.
 * 3) Upgrade the operating system to Windows Server 2003.
 * 4) Create a sample ASP.NET Web application project by using Visual J# .NET.
 * 5) Run the sample ASP.NET application.

