Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3233298
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:15:39+00:00 2026-05-17T17:15:39+00:00

Consider the following scenario: I have two assemblies: Assembly named A.dll located in folder

  • 0

Consider the following scenario:

I have two assemblies:

  • Assembly named A.dll located in folder Fold_A
  • Assembly named B.dll located in folder Fold_B

A.dll depends on B.dll and A is COM visible
when I’m performing command:

regasm A.dll /codebase

It fails, but when B was copied into fold_a – the command succeeded.

Is there some way to perform without copying assemblies on which depends assembly to be registered (by regasm)?

There is already question related to the issue: Multiple search paths for assemblies not in the GAC when using REGASM & COM

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:15:40+00:00Added an answer on May 17, 2026 at 5:15 pm

    Well, yes, it is a problem when you register it but it will be a much larger problem when a client actually uses your COM server. A typical COM client will be unmanaged code, it isn’t very practical to give it, say, a .config file to tell the CLR where to look for assembly B.

    If you want this to work for any client without config then you ought to put B in the GAC. Which in general is the proper place for COM servers, DLL Hell is nothing to mess with when you use COM. Using the Assembly.AssemblyResolve event is probably not going to be practical but you could try by using a static class constructor to register the event handler. Hard coding the path to dependencies is questionable unless those folders are always related.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might be a novice question. :). Consider the following scenario. Suppose we have
Consider the following scenario: You have an account model You have an external service
please consider the following scenario for .net 2.0: I have an event that is
I have question about try, catch and finally in Java. Consider the following scenario:
Please consider the following scenario: map(T,S*) & GetMap(); //Forward decleration map(T, S*) T2pS =
Consider the following scenario: Someone has a project on Github that might be updated
Let's first consider a simple scenario ( see complete source on ideone.com ): import
Consider the following two scenarios (Edited just to complete the whole question and make
[unit testing newbie] [c#] Consider the following scenario: I'm using Silverlight and calling a
Coding Platform: ASP.NET 4.0 C# Consider the following scenario. I am uploading a file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.