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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:16:23+00:00 2026-05-25T13:16:23+00:00

I’m not sure how to describe this best. But I have a problem understanding

  • 0

I’m not sure how to describe this best. But I have a problem understanding the load process of Assemblies.
My application uses plug-ins via Reflection. It works pretty fine and I’m quiet happy with that. Now I’ve stumbled upon a problem which confuses me and I think I missed something:
In one of my modules, I reference another module. At run time all modules are loaded. There are module ClientManager and the calling module Calculations. ClientManager and Calculations are both loaded. Calculations references ClientManager . When Calculations tries to load a class of ClientManager I get a File Not Found-exception.
Both assemblies are loaded from a bytestream in memory (via Assembly.Load(byte[]).
When Calculations tries to load the class of ClientManager this is how it looks like:

loaded: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
many more Assemblies…
loaded: ClientManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
loaded: Calculations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Name of Assembly to be loaded: ClientManager,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Requested from: Calculations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

So, the Assembly is loaded, yet it gets requested and the request fails. What am I missing? Do I have to load the assembly twice?

I’m grateful for any help.

Greetings,
Skalli

  • 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-25T13:16:23+00:00Added an answer on May 25, 2026 at 1:16 pm

    Your problem looks very similar to this one I’ve encountered developing a plug in: Where does Visual Studio look for assemblies?.

    I think that you should first of all understand where .NET is looking for your assembly and compare it with the one which is already loaded in your AppDomain. This can be done using ProcMon.exe to see where your app is not able to find the assembly and looking at the CodeBase property of the ClientManager that you can find in AppDomain.CurrentDomain.GetAssemblies().

    I imagine that these 2 paths will be different, but it’s difficult to imagine why your app is looking for assemblies in different places without knowing them.

    In the end I solved my problem using the AssemblyResolve event, too, simply looking for my assembly in the currently loaded assemblies and just retutning it (without loading it again).

    This is how I did it. I’m not so sure that it is really neat, since it works only because the assembly that was not found was already loaded:

    AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
    
    static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
    {
        foreach (Assembly anAssembly in AppDomain.CurrentDomain.GetAssemblies())
            if (anAssembly.FullName == args.Name)
                return anAssembly;
        return null;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
This could be a duplicate question, but I have no idea what search terms
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have thousands of HTML files to process using Groovy/Java and I need to
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I have just tried to save a simple *.rtf file with some websites and

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.