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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:49:07+00:00 2026-05-14T02:49:07+00:00

I am facing the following issue when deploying a com-exposed assembly to my client’s.

  • 0

I am facing the following issue when deploying a com-exposed assembly to my client’s. The COM component should be consummed by a vb6 application. Here’s how it’s done

1) I have one c# project which has a class with a couple of methods exposed to COM

2) The project has references to multiple assemblies

3) I compile the project, generating a folder (named dllcom) that contains the assembly plus all the referenced dlls

4) I include in the folder a .bat which does the following:

regasm /u c:\dllcom\LibInsertador.dll
del LibInsertador.tlb
regasm c:\dllcom\LibInsertador.dll /tlb:c:\dllcom\LibInsertador.tlb /codebase c:\dllcom\
pause

5) After running the bat locally in many workstations of my laboratory, i’m able to consume the generated tlb from my vb6 application without any problems. I’m even able to update the dll by only means of running this bat, without having to recompile the vb6 application. I mean that im not having issues of vb6 fiding and invoking the exposed com object.

The problem

6) I send the SAME FOLDER to my client

7) They execute the .bat locally, without any errors

8) They execute the vb6 application, vb6 finds the main assembly, the .net code seems to run correctly (it’s even able to generate a log file) until it has to intantiate it’s first referenced assembly. Then, they get the following exception:

“Could not load type ‘GYF.Common.TypeBuilder’ from assembly ‘GYF_Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.”

Where “GYF.Common” is an assembly referenced by LibInsertador and TypeBuilder is a class contained in GYF.Common. GYF.Common is not a signed assembly and it’s not in the GAC, just in the same folder with Libinsertador. According to .net reflector, the version is correct.

¿Any ideas about what could be happening?

  • 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-14T02:49:07+00:00Added an answer on May 14, 2026 at 2:49 am

    This only works by accident on your machine. The CLR has no reason to look inside the directory with your COM visible DLL for any dependencies. It will probe the EXE folder and the GAC to look for them.

    Not sure how this accident happens on your machine, take a look at the assembly resolution with Fuslogvw.exe. Maybe your test program is in the same folder as your COM assembly? The proper way to do this is to deploy the assemblies to the GAC (no /codebase). Important to avoid getting eaten alive by the DLL Hell problem that always lurks around the corner with COM.

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

Sidebar

Related Questions

I'm currently facing the following issue: My app dynamically creates images (320 x 480
I am facing issue with the following Json reponse object in the javascript eval
We are facing an issue where the following check fails intermittently in IE: pseudocode:
The current issue im facing is comes from the following scenario. I have a
Please I am facing the following issue: Throughout my Java program, i am accessing
i am developing a ebook reader and i am facing the following issue. if
I'm using a database for searching and facing following issue. When new search string
I am facing strange issue on Windows CE: Running 3 EXEs 1)First exe doing
I am facing an application designed to import huge amounts of data into a
I am facing an application that uses hashing, but I cannot still figure out

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.