Note that there are some explanatory texts on larger screens.

plurals
  1. POReference to a loaded Assembly
    text
    copied!<p>I'm not sure how to describe this best. But I have a problem understanding the load process of Assemblies.<br> 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:<br> 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.<br> Both assemblies are loaded from a bytestream in memory (via Assembly.Load(byte[]).<br> When Calculations tries to load the class of ClientManager this is how it looks like: </p> <blockquote> <p>loaded: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br> many more Assemblies...<br> loaded: ClientManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null<br> loaded: Calculations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null<br> Name of Assembly to be loaded: ClientManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null<br> Requested from: Calculations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</p> </blockquote> <p>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? </p> <p>I'm grateful for any help.</p> <p>Greetings,<br> Skalli</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload