Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Working with vjslib.dll

Posted on 2009-12-18
8
Medium Priority
?
4,540 Views
Last Modified: 2013-11-26
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
0
Comment
Question by:RTSol
  • 4
  • 4
8 Comments
 
LVL 9

Expert Comment

by:magicdlf
ID: 26081736
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
 
LVL 9

Expert Comment

by:magicdlf
ID: 26081796
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
 

Author Comment

by:RTSol
ID: 26081863
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 9

Expert Comment

by:magicdlf
ID: 26081884
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
 

Author Comment

by:RTSol
ID: 26081969
I found the newer version (2.0.0.0) - but I get the same build error.

-RTSol
0
 
LVL 9

Accepted Solution

by:
magicdlf earned 2000 total points
ID: 26081981
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
 

Author Comment

by:RTSol
ID: 26082265
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
 

Author Closing Comment

by:RTSol
ID: 31667807
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

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question