Unable to load .NET assembly for COM Interop

Posted on 2009-02-12
Last Modified: 2013-12-17
We have a .NET assembly (C++/CLI) that has been installed for COM interop on a remote machine which we basically use as a file server.  The assembly is strong named.  The directory on the server where the assembly is installed also contains MFC dll's which are linked with the .NET assembly.  On a workstation we have used regasm to register the assembly to the mapped drive where the assembly is found.  Now when we run a test app (C#) which runs through some VB6 modules that instantiates object the assembly we get an error that it cannot find the file specified.

I ran fuslogvw.exe to see what was going on with the load of the assembly and it looks like it is only probing the directory where the test app is installed.  It does not know to look where we registered the file.

One thing to note is that when everything is run on the same machine we don't have any problems.  The test app and the assembly are still in different directories but it works.

Any help would be very much appreciated.
Question by:Voltus_WoW
    1 Comment

    Accepted Solution

    We found the problem.  We ran RegAsm with the /codebase parameter and everything worked.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    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…
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now