We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Unable to load .NET assembly for COM Interop

Medium Priority
735 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.
Comment
Watch Question

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.