Visual J# 1.1 not loaded after installing .NET Framework 2.0

Hi,

I have a Microsoft Office Excel 2003 addin developed on .NET Framework 1.1 which uses Visual J# package. It works fine when Framework 1.1 and J# Redistributable 1.1 are installed.

However, when I install Framework 2.0 along with Framework 1.1, it gives me the following error:

Could not load file or assembly "vjslib Version=1.0.3300.0, Culture=neutral,PublicKey Token=b03f5f7f11d50a3a" or one of its dependencies.

The same error occurs even if I install Visual J# Redistributable Package 2.0 .

Please reply asap.

Regards,

sameerbhise



Answer this question

Visual J# 1.1 not loaded after installing .NET Framework 2.0

  • GlennC

    Have u installed .net framework 2.0 and J# redist 2.0

    Please install both of the above and let us know if it still doesnt work.

    Thanks,

    Varun



  • lgbjr

    Varun Gupta wrote:

    Hi,

    We are trying to look into the issue. Can you post some part of addin code with which we can reproduct the problem

    Thanks,

    Varun



    Hi Varun,

    The code which uses the Visual J# Library is a dll to which I have added a reference.
    Secondly,it is just simple stuff where in a web service is accessed through a SOAP request.

    However, this works fine when only .NET 1.1 & Visual J# 1.1 are installed. When I test on a machine alread having .NET 2.0 it failed.Also, when I install .NET 2.0 after the plug-in, it failed.

    Regards,
    sameerbhise


  • publicgk

    Devesh321 wrote:

    Hi,

    Go to Control Panel - Administrative Tools - Microsoft .NET Framework 1.1 Configuration. Open it and expand My Computer and click on configured assembly. In right side pane you will see two links. Click on "View List of configured Assemblies".

    Please let me know if any assembly name is there in it.

    Do same steps for Microsoft .NET Framework 2.0 Configuration (within Administrative Tools) also and let me know if any assembly name is there in it.

    Thanks,

    Devesh



    Hi,

    I checked it...there's no assembly there...

  • Alan Simes

    sameerbhise wrote:

    Hi,

    I have a Microsoft Office Excel 2003 addin developed on .NET Framework 1.1 which uses Visual J# package. It works fine when Framework 1.1 and J# Redistributable 1.1 are installed.

    However, when I install Framework 2.0 along with Framework 1.1, it gives me the following error:

    Could not load file or assembly "vjslib Version=1.0.3300.0, Culture=neutral,PublicKey Token=b03f5f7f11d50a3a" or one of its dependencies.

    The same error occurs even if I install Visual J# Redistributable Package 2.0 .

    Please reply asap.

    Regards,

    sameerbhise


  • Jeff Wilcox - MSFT

    Hi,

    I tried it out for normal scenarios but its not reproing. So the best which I can do is to create a similar environment and do somewhat same operation which you are doing. So for that I need some details like

    1) what kind of excel plugin you are using and for what purpose

    2) You have installed VSTS or only .net framework 2.0

    3) It will be great if you could send portion of code after which its throwing error and

    that error page.

    Thanks,

    Devesh


  • RX7

    Hi,

    Go to Control Panel - Administrative Tools - Microsoft .NET Framework 1.1 Configuration. Open it and expand My Computer and click on configured assembly. In right side pane you will see two links. Click on "View List of configured Assemblies".

    Please let me know if any assembly name is there in it.

    Do same steps for Microsoft .NET Framework 2.0 Configuration (within Administrative Tools) also and let me know if any assembly name is there in it.

    Thanks,

    Devesh


  • Mike Hanson

    I had this problem also. I use C# Express to write a console program to zip and nzip files.

    I add vjscor.dll and vjslib.dll for .Net 1.1. It is complied OK. But I got the runtime exception - "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."

    I am sure the files are in right location.I am sure the files are in right location.

    I don't have .net framework1.1, but I have installed .net framework2.0 and V J# 1.1 redistribute pakage.

    Here is the code:

    using java.io;

    using java.util.zip;

    ZipFile file = new ZipFile(filename);

    Any Ideas Thanks!

    ZZ



  • Demian Schnaidman

    I tried with same steps but it's not reproing in my machine. Can you please give the name of dlls which you are using in your project or else if possible send sample code to repro it. In which OS you are running your project And in which type of project (console/web/windows) you are consuming your webservice

    Thanks

    Devesh


  • Jerry Boggess

     Devesh321 wrote:

    I tried with same steps but it's not reproing in my machine. Can you please give the name of dlls which you are using in your project or else if possible send sample code to repro it. In which OS you are running your project And in which type of project (console/web/windows) you are consuming your webservice

    Thanks

    Devesh


    Hi Devesh,

    Its an Excel plug-in which i am tryin to develop.I call API's in the eBay SDK(a dll) which internally uses some VJ# functionality to call the eBay Web Services... Most of the people have come up with the solution to place the Visual J# 1.1 assemblies in the execution directory(bin) but i can't do that since it's a plug-in...M trying this on Windows XP.

    Secondly, everything works fine when the same thing is done in a standalone application(i.e. accessing eBay dlls n the Web Service). I feel that Excel fails to load the lilbrary after .NET Framework 2.0 is installed...

    Regards,
    sameerbhise

  • Anthony Wood

    Yes I have installed both Framewok 2.0 and Visual J# 2.0...bt it doesn't work...it works only when Framework 1.1 and VJ#1.1 are installed...

  • Bruce Frost

    Hi, I had a similar problem to this.  I was using the ebay SDK (today in fact) and got the same exact error.  I am developing on a x64 64-bit version of windows and when I closely examined the GAC (c:\windows\assembly) I noticed there was no 64 bit version of the vjslib installed in my gac.  So I set the build options for my application to build only to x86 and it worked.

    Also, you might want to look into assembly binding redirection.  It is a shame that ebay is so out of touch with technology (they are still developing their api using a 1.0 version of J#)...

    -David Sandor

     

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconassemblyversionredirection.asp

    <configuration>

    <runtime>

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

    <dependentAssembly>

    <assemblyIdentity name="vjslib"

    publicKeyToken="b03f5f7f11d50a3a"

    culture="neutral" />

    <!-- Assembly versions can be redirected in application, publisher policy, or machine configuration files. -->

    <bindingRedirect oldVersion="1.0.3300.0"

    newVersion="2.0.0.0"/>

    </dependentAssembly>

    </assemblyBinding>

    </runtime>

    </configuration>


  • ScottTR

    Hi,

    We are trying to look into the issue. Can you post some part of addin code with which we can reproduct the problem

    Thanks,

    Varun



  • Visual J# 1.1 not loaded after installing .NET Framework 2.0