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 7635177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:22:29+00:00 2026-05-31T07:22:29+00:00

I have a C# dll and generarted a tlb using regasm. I have given

  • 0

I have a C# dll and generarted a tlb using regasm. I have given a utility spreadsheet to the users which uses this tlb. The tlb is unregistered and registered (using regasm.exe) everytime a new version of our application is released.

However, at times, when the user is using the spreadsheet after a new release, it throws a ‘activex component cannot create instance’ error, exactly on the line of code where I create an object of a type. I fix this just by, removing and adding the tlb reference back. (In vba mode-tools-reference-uncheck the tlb-save-and again add). However this is painful since I cannot do this for all users.

I did several tests to replicate the scenario. Like changing the version number of dll and re-registering, adding new methods to interfaces and re-registering. But in all the cases, the spreadsheet works fine without having to remove and re-add the tlb reference.

So, I am confused what could be the scenario where the tlb has to be re-added as reference in the spreadsheets and what could be the probable cause of this. Any help is appreciated.

Thanks,
Mani

  • 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-31T07:22:31+00:00Added an answer on May 31, 2026 at 7:22 am

    The problem is most likely caused by the fact that UUID of the type library changes and the reference in VBA becomes invalid.

    1) There a guy over there who wrote a VBA program to add TLB references and delete invalid ones!

    2) This may be related to the fact you uninstall the old version first and then install the new one. RegAsm’s manual mentions the reverse order. There’s a possibility VBA has some logic to update them automagically that would only work with the update order that M$ guys had in mind.
    Another possibility is that Excel was running during the update so it did not update its reference list when it was supposed to.

    3) To diagnose the problem further, I’d use procmon.exe. Everything about COM is looked up in the registry so in case of errors, you’ll probably bump into the app’s inability to find some UUID key.

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

Sidebar

Related Questions

I have a method in .NET (C#) which returns string[][] . When using RegAsm
I have a dll which I disassemble in Reflector, I then generate a class.
I have DLL and application that will call some function in this dll. For
I have a DLL with some COM objects . Sometimes, this objects crashes and
I have a dll that was written in c++, I need to use this
I have a C++ DLL that imports a .tlb file generated in a C#
I have a setup project for a .NET Service Application which uses a .NET
I have some C# code which is using CSharpCodeProvider.CompileAssemblyFromSource to create an assembly in
I have a .NET dll which has some interfaces\classes which are exposed to com.
I know, WinFax Pro is so 1998. (note: this is not WinFax.dll, which is

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.