assembly-loading

COM interop assembly loading sequence

There is very strange assembly reference problem and loading problem I experience with my Outlook addin. Here are the detail (a long story :) ): I have an old Outlook addin, written and build using .Net 1.1. The addin is loaded using an unmanaged shim in its own application domain. It works OK, with .Net 2.0, even if 1.1 is not present ...

Difference between LoadFile and LoadFrom with .NET Assemblies?

I was looking at the msdn documentation and I am still a little confused on what exactly is the difference between using LoadFile and LoadFrom when loading an assembly. Can someone provide an example or an analogy to better describe it. The MSDN documentation confused me more. Also, Is ReflectionOnlyLoadFrom the same as LoadFrom except t...

"System.IO.FileNotFoundException: Could not load file or assembly" when the assembly does in fact exist

As part of our migration from .net 1.1 to .net 3.5, we had to change out a few vender DLLs. One of them is giving us trouble in only 1 spot out of the 4 spots we use it at: The trouble spot is a windows form project that uses reflection to dynamically load some DLLs that run long running processes. One of these long running processes i...

Load assembly from memory

Hello, I am porting a Java application where classes are loaded and "executed" at runtime from memory (a byte array). I am trying to achieve the same thing in C#, but I am having problems (System.IO.FileNotFoundException exceptions) when trying to load assemblies from byte arrays (using the AppDomain.Load method). static void Main(str...

Is MEF For Me? (one core application allowing client applications to plug into it)

I'm trying to determine if MEF is a the proper direction our application framework should be taking. From my reading of MEF, our framework doesn't seem to 'exactly' fit in, but I'll see if any experts can guide me. Our framework allows us to have one core website and dependent assemblies deployed to one place (and fixes or features are...

Is using Assembly.Load a static reference or dynamic reference?

What are the implications and suggested scenarios to use either? ...

Child form looses focus on first click to parent form. How to fix this?

Im writing a new plugin based app. This loads assemblies in their own app domains and displays the specified main forms within each via Application.Run(pluginForm). I set the main form in the loader app as the parent of each pluginForm before calling Application.Run(pluginForm) inside the app domain. Hence when the pluginForm shows it al...

Two applications load same .NET assembly: same instance?

1) .NET Assembly MyAssembly.dll implements a Singleton class MyClass 2) A .NET APP has a reference to MyAssembly.dll and uses MyClass 3) A .NET ActiveX MyActiveX.dll implements a COM Visible class wich in turn references to MyClass in MyAssembly.dll My question is: if the app and the ActiveX are running at the same time (the ActiveX ...