Question

I built a web application that uses the J# libraries which works fine in my cpu, however, when I deploy it to my shared server. I get an error message: Parser Error Message: Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

So basically, the server doesn't have visual j# installed. The problem is they wont install it because it is a shared server.

Is there a way I can deploy the J# assemblies with my project so that it will work on the shared server without it being registered in the GAC?

Thanks for your help!!

Was it helpful?

Solution

Simplest solution: Try to copy the assemblies your application needs into the same folder where your application resides.

The following MSDN article explains How the Runtime Locates Assemblies.

Also, you may find more options (including copying all J# related dlls into a subfolder of the application folder if needed) in the following link when the runtime cannot find the assembly in the GAC: Locating the Assembly through Codebases or Probing

OTHER TIPS

Without knowing anything about J# I can only suggest that you try just distributing the required libraries along with your program (place them in the same directory), I believe if it can't find the library in the GAC it will revert to look in the current directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top