[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Unable to load .NET assembly for COM Interop

Posted on 2009-02-12
1
Medium Priority
?
726 Views
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.
0
Comment
Question by:Voltus_WoW
1 Comment
 

Accepted Solution

by:
Voltus_WoW earned 0 total points
ID: 23628308
We found the problem.  We ran RegAsm with the /codebase parameter and everything worked.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month20 days, 4 hours left to enroll

872 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