Microsoft KB Archive/314625

From BetaArchive Wiki

Article ID: 314625

Article Last Modified on 8/7/2003



APPLIES TO

  • Microsoft Visual J# .NET 2003 Standard Edition
  • Microsoft Visual J# .NET 2003 Standard Edition



This article was previously published under Q314625

SYMPTOMS

After you deploy a Visual J# ASP.NET application to a Web server, a client that tries to access the page may receive the following error message:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: 'VJ#' is not a supported language.

CAUSE

The Web server does not have the Visual J# Redistributable Package installed.

RESOLUTION

A Web server that serves Visual J# ASP.NET applications must have both the .NET Common Language Runtime and the Visual J# Redistributable Package installed. To obtain the Visual J# Redistributable Package, visit the following Microsoft Developer Network (MSDN) Web site:

STATUS

This behavior is by design.

MORE INFORMATION

The user code that the Active Server Pages (ASP) page references is compiled on the development computer and an assembly is produced. To deploy the application, you must move the ASP (.aspx) page and the compiled dynamic-link library (DLL) from the development computer to the server.

When the page is loaded from the server at run time, ASP.NET dynamically generates a new class that is extended from the assembly that the user deploys. ASP.NET then compiles this new class. This class produces the HTML rendering that is displayed in the client browser. This ASP.NET form rendering model is the same for all .NET languages. The second stage of code generation and compilation requires the Visual J# runtime to be present on the deployed server.

Steps to Reproduce the Behavior

  1. Create a new Visual J# ASP.NET Web Application project.
  2. Build the project.
  3. Copy the .aspx page and the compiled DLL on a Web server that has only the .NET Framework installed (and not the Visual J# runtime).
  4. Verify that the .aspx page is served by your Web server.
  5. Try to access the page from a Web browser.


REFERENCES

For more information about Visual J# .NET, visit the following Web site:

Microsoft Visual J# .NET Beta 2
http://msdn.microsoft.com/visualj/jsharp/beta.asp


For more information about Visual J# .NET, visit the following MSDN newsgroup:


Additional query words: vj# jsharp web deploy

Keywords: kbhowtomaster kbprb kbfaq kbdeployment KB314625