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:
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:
Visual J# .NET Redistributable Package Beta 2
http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?url=/msdn-files/027/001/897/msdncompositedoc.xml
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
- Create a new Visual J# ASP.NET Web Application project.
- Build the project.
- 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).
- Verify that the .aspx page is served by your Web server.
- 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