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

  • SEARCH
  • Home
  • 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 7595911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:47:27+00:00 2026-05-30T21:47:27+00:00

I have a C# .NET class library which I have exposed in COM by

  • 0

I have a C# .NET class library which I have exposed in COM by generating a tlb. This will be used in excel VBA by users to create their own functionality. I call this as ‘MyLib.dll’ and ‘MyLib.tlb’.

We are now in UAT mode and is deployed to users machine in C:\UAT[my app binaries]. So, I register my dll from this path as regasm C:\UAT\MyLib.dll /codebase.

But when we move to production, we would deploy to C:\PROD\[my app binaries]. So, I would register it as regasm C:\PROD\MyLib.dll /codebase.

This would not work, since the prod version will break the old UAT version of tlb. Hence, the users spread sheets which use the UAT version of my tlb would not work. Also, going forward, I cannot release with different name of the library for UAT and PROD because the code base is the same and I cannot keep changing the project or tlb name for each of the versions.

How to tackle this situation or is there any way to make it work where tlb name and functions are the same and can work based on the path where it is deployed or what is the general best practice to have many versions of the tlb on the same machine.

Many Thanks.

  • 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-30T21:47:29+00:00Added an answer on May 30, 2026 at 9:47 pm

    What I have found out after all the research and tries is that, it is not possible to have two tlbs with name registered in the machine even if from a different path. The registry entries that are created on registering the tlb types uses the name of the containes types. Hence, there is no way we can have two tlbs with the same name and verion even if running from a different path. Hope this helps !

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

Sidebar

Related Questions

I have a class library which I want to call from my .NET application
I have a problem in a VB.Net class library which I have simplified greatly
I have a ASP.NET (C#) web page which utilizes a VB class library. The
I have a C# .Net console application which calls a C++ .Net class library.
I have a class library which needs some configuration to function. This class library
I have a .NET class library that spins up a secondary process which is
I have a class library which is called through COM from a Third Party
I have a .NET class library containing a class with a method that performs
I have an ASP.NET VB.NET web project that references a VB.NET class library. I
I have a class library (.NET) with a reference to a web service (in

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.