Working with vjslib.dll

Hi,

I am building a project with a zip utility (http://www.codeproject.com/KB/cs/csharp_zip.aspx) where a mix of C# and J# is called for. I downloaded the library vjslib.dll and refreenced it in my project. When I try to build I get this message:

"Cannot resolve dependency to assembly 'vjscor, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event."

I have installed Visual Studio without including J# - is that a problem? If so - how can I add the J# environment at a later time?

Hope you can help me!

-RTSol
RTSolAsked:
Who is Participating?
 
magicdlfCommented:
Both the vjslib and vjscor? Did you remove the previous reference and add the new one? Are both of the dlls installed in GAC (which means you can find them in the ".net" tab when adding a reference)?
0
 
magicdlfCommented:
Quote from the article:
(Notice that you must have J# libraries installer on your Web server, otherwise you won't be able to have this working.)
Is it because of this?
0
 
magicdlfCommented:
Which .net framework and Visual Studio do you have?  What is the version of the vjscor.lib and vjslib do you see when you are adding a reference? To me, I saw they are both 2.0.0.0, and everything is ok after I apply the example code from that article.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
RTSolAuthor Commented:
I have .NET 3.5 and Visual Studio 2008.

How do I accomplish this "Notice that you must have J# libraries installer on your Web server, otherwise you won't be able to have this working."?

The version of vjslib seems to be 1.0.5000.0 - I need to find a newer version?

-RTSol
0
 
magicdlfCommented:
I guess you just need to have the same version of the vjslib and vjscor. Try to find if there's any other dlls in your machine and if not so, try install / uninstall some part of the visual studio and that might be helping.
If it is still not working, try to download the newer version of the vjslib and vjscor and install them to gac, try it again. All I can tell is that I am using version 2.0.0.0 and it seems all ok for me.
0
 
RTSolAuthor Commented:
I found the newer version (2.0.0.0) - but I get the same build error.

-RTSol
0
 
RTSolAuthor Commented:
I removed the previous reference and added the new one. I have not installed them in the GAC. I have to gigure out how to do that - maybe I reinstall Visual studio and include support for J# - that should fix it I guess. I will get back to you.

-RTSol
0
 
RTSolAuthor Commented:
Hi,
I followed your advice to add the dll:s to the GAC. I took the easy way though, by installing the J# redistributable package for Visual Studio - it did the trick.
Thanks for your effort!
RTSol
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.