Questions tagged [assemblyresolve]

42 questions
0
votes
0 answers

AssemblyResolve not fired with anonymous handler

I'm trying to resolve dynamically loaded assemblies, but the AssemblyResolve event does not appear to work with anonymous functions. private void Load() { ResolveEventHandler resolve = (sender, args) => Assembly.LoadFile(pathToDependency); …
Bart
  • 26,399
  • 1
  • 23
  • 24
0
votes
1 answer

c# Assembly.LoadFrom with dynamic AssemblyResolve

I'm kind of stuck with dynamically loading plugins: Theory: (Plugin) Dlls in a specific folder: foreach(string path in Directory.GetFiles(...)) { Assembly myPlugin = Assembly.LoadFrom(path); foreach(Type type in myPlugin.GetTypes().Where(t…
Robin
  • 123
  • 7
0
votes
0 answers

.Net 4.0 Linking, Assembly Resolution and VSTO 4.0

I'm having an assembly resolution problem with linked assemblies when writing a VSTO 4.0 add-in. I have assemblies A, B, C and D; where Assembly A references B and B references C and D. During the build process I link assemblies C and D into…
Wes
  • 77
  • 7
0
votes
1 answer

GetAssemblies is never called in IAassembliesResolver

Currently I try to override the assembly resolving in ASP.Net WebApi 2. Overrideing: var resolver = new ExtendedAssemblyResolver(new[] { dynAsm }); // Add a list of dynamically loaded…
BendEg
  • 20,098
  • 17
  • 57
  • 131
0
votes
0 answers

AppDomain PrivateBinPath 3 level in path

I configure my PrivateBinPath as follows: plugins;plugins\pluginA;plugins\pluginA\resources;... I can see in the fusion log the application ignores all paths like plugins\pluginA\resources. The directories exist, but every path with more than two…
AlteGurke
  • 585
  • 6
  • 20
0
votes
1 answer

Why Assembly does not resolve when type is used as an attribute?

In my solution, I have a project (let's say 'PRJ1' ) which has a type inside, say MyAttribute1 that implements UITypeEditor. In another project,I reference PRJ1 and use MyAttribute1 as an attribute for a property. The problem is, when I build the…
BHP
  • 443
  • 4
  • 13
0
votes
0 answers

AppDomain.CurrentDomain.AssemblyResolve issues

I have a single application that loads dynamicaly the three following solutions: - SolutionA which references X.dll version 3 Z.dll version 1 which references X.dll version…
0
votes
0 answers

Load a dependent DLL in .net C# , and get path of referenced assembly

I am using below mentioned code snippet. but the codebase property in null, so from where can we get the path ? public partial class App : Application { public App()z { AppDomain.CurrentDomain.AssemblyResolve += new…
sumit
  • 21
  • 2
0
votes
0 answers

.NET AssemblyResolve - Dynamically Loading New .dll Version

I have many .NET WinForm applications that use a particular .dll assembly. The company that puts out this particular product occasionally releases a new version. Since they offer strong-name assemblies, I need to download the new version of their…
clamum
  • 1,237
  • 10
  • 18
0
votes
0 answers

AssemblyResolve event from another library

I have a WinForms project that references to some library. In main() of that project I added AppDomain.CurrentDomain.AssemblyResolve += MyResolveEventHandler; but it catches only libraries that are called by the executable itself (this project).…
Mike
  • 842
  • 1
  • 9
  • 31
0
votes
1 answer

Using assemblyresolve to handle missing assemblies in C#

I am following Method 3 in http://support.microsoft.com/kb/837908 to load assemblies dynamically in C#. However, the code is not working for me. In the following section of the code, the author loads the missing assembly only if the name of missing…
user236215
  • 7,278
  • 23
  • 59
  • 87
-1
votes
1 answer

How to run managed code on different version assemby

I'm working with one application that that has and C# API. This program has different versions of it. But the api stays the same through its versions. So i have written a managed code to one of its versions, and now i want to run the same code at…
Paulius
  • 11
  • 1
1 2
3