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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:34:57+00:00 2026-05-18T01:34:57+00:00

Background Info: I have two COM+ components on a remote server, based on .NET

  • 0

Background Info:

I have two COM+ components on a remote server, based on .NET assemblies, one of which calls the other, which in turn calls a private assembly.

My chain of calls looks like this;

Client Machine:

Test Harness -> Initialises COM+ component “TestFirst” through Activator.CreateInstance(…), which routes via COM+ application proxy, then calls a method on the instance.

Remote Server:

TestFirst -> Method call from client initialises a COM+ component “TestSecond” through “new” keyword use, then calls a method on the instance.

TestSecond -> Calls a method on a class contained in a private assembly; “TestThird“

The Problem:

In order for the TestSecond to be called successfully, it seems that I have to install the assembly to the GAC. Otherwise, I get this error;

Cannot load type ‘TestSecond.TestSecond, TestSecond, Version=1.0.0.0, Culture=neutral, PublicKeyToken=…’.

OK, so I add TestSecond.dll to the GAC and then…

Could not load file or assembly ‘TestThird, Version=1.0.0.0, Culture=neutral, PublicKeyToken=…’ or one of its dependencies. The system cannot find the file specified.

The obvious answer here is to add TestThird to the GAC too, which does work, but I would prefer not to go down this road. This is just a proof of concept, and the actual project which follows this structure has many private assembly references and I would like to avoid adding them all to the GAC just so these COM+ components can see them.

Is there any alternative? Is there perhaps some way of associating a working directory with a GAC registered assembly?

Note: This question is tangentially related to another question I asked during the week, but I’m specifically focusing on the dependency resolving of GAC installed assemblies.

COM+ component calling other COM+ components – "Cannot load type"

  • 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-18T01:34:57+00:00Added an answer on May 18, 2026 at 1:34 am

    You can make your assemblies load their dependent assemblies from whatever install path you choose:

    http://www.chilkatsoft.com/p/p_502.asp

    (No association with that company, their example just seemed relatively clear.)

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

Sidebar

Related Questions

Please help! Background info I have a WPF application which accesses a SQL Server
I have two scripts running on the same page, one is the jQuery.hSlides.js script
I have written a small GUI based vb.net program that speaks to embedded devices
Background info: I've set up a very simple .NET solution in VS2008 that contains
I have two controls which are both contained within a user control. Panel location:
Some background info; LanguageResource is the base class LanguageTranslatorResource and LanguageEditorResource inherit from LanguageResource
Background: I have a little video playing app with a UI inspired by the
Background I am writing and using a very simple CGI-based (Perl) content management tool
Background I have a massive db for a SharePoint site collection. It is 130GB
Background I am trying to create a copy of a business object I have

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.