Questions tagged [assembly-resolution]
229 questions
1
vote
1 answer
Installing NuGet package with Specific Version property set on Visual Studio assembly reference
When I run nuget install package, my assembly reference is set with "Specific Version" false. I want this set to true when installing a package, is this possible?
I need to prohibit the assembly resolution to use older versions of the package…

ogborstad
- 2,309
- 2
- 19
- 22
1
vote
0 answers
Assembly redirection in a .net application
I could not find a specific answer for my scenario hence posting this question once again in the board. Apologies if it is already answered.
Following is my scenario/problem:
We have a windows forms application and several business logic and data…

Satish
- 445
- 2
- 4
- 15
1
vote
0 answers
Assembly redirect from ASP.NET MVC area Web.config
I'd like to add an assembly redirect for some libraries used by only one area of my ASP.NET MVC app. Not to clutter to root application Web.config, I'd like to have these redirects in the Web.config of the area.
Is this possible? Adding the…

Piedone
- 2,693
- 2
- 24
- 43
1
vote
0 answers
Could not load file or assembly 'Interop.ADOX
I am adding reference to Interop.ADOX.dll in my class library project "ABCD" in C#. When I built the project it builds fine. I can also access classes and functions provided by Interop.ADOX.dll.
But when I run the exe which uses my dll "ABCD", it…

ShalakaV
- 25
- 1
- 6
1
vote
1 answer
windows service with background worker Could not load file or assembly error
I'm creating a windows service, which tests if a scheduled job may be executed and then it starts a background worker to execute the job.
Within the main thread of the windows service, I create a data access layer(DAL) object, from an assembly…

Mischa Vreeburg
- 1,576
- 1
- 13
- 18
1
vote
0 answers
Why is Mono's Evaluator.Evaluate() causing a FileLoadException - AssemblyResolveEvent handlers cannot return Assemblies loaded for reflection only?
I have the following code:
public static void Run()
{
var reportPrinter = new ConsoleReportPrinter();
var compilerSettings = new CompilerSettings();
var compilerContext = new CompilerContext(compilerSettings,…

fostandy
- 4,282
- 4
- 37
- 41
1
vote
2 answers
Assembly FileLoadException (Access is denied) after period of time
I have a web application that works fine for a while (a few days) and then starts throwing FileLoadException's when instantiating a class that references an external dll.
I'm not explicitly loading the assembly with any of the Assembly static…

Andrew
- 1,494
- 1
- 17
- 27
1
vote
3 answers
how can I embed an assembly into a console application without ILMerge?
There are a lot of posts on here about this, I'm using this code from another SO post and placing a delegate assignation in my Main() method. None of the other posts have directly answered my question.
I've got my third party assembly embedded as a…

jcollum
- 43,623
- 55
- 191
- 321
1
vote
2 answers
Rules for when .NET referenced assembly is put in bin\debug
How does .NET (or Visual Studio) build decide whether or not to copy a referenced assembly to your bin/debug or bin/release directory? (This is an .exe console program.)
On my machine, I had the referenced assembly in the GAC. A co-worker copied…

NealWalters
- 17,197
- 42
- 141
- 251
1
vote
1 answer
Why does the assembly reference gets loaded successfully when using MEF?
Contrary to the usual issues of MEF users, I'm not trying to figure out why a dependency of an assembly I load with MEF is not resolved. I am solving the opposite problem - trying to find out why the dependency is loaded.
The situation is that I…

twoflower
- 6,788
- 2
- 33
- 44
1
vote
0 answers
SQLite assembly in separate project
I have 2 projects (in question)
DataAccessLayer
Tests
I am using Fluent nHibernate, and setting up a SQLite database.
I have referenced System.Data.SQLite in DataAccessLayer project (with CopyLocal = true) but when I run the configuration in the…

Michal Ciechan
- 13,492
- 11
- 76
- 118
1
vote
1 answer
PCL Retargetable Assembly not redirected inside MS CRM Plugin
Calling
Assembly.Load("System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes");
inside a .net 4.03 application should redirect to the correct 4.0.0.0 System.Core
It works on my machine for a Console App…

Adam Mills
- 7,719
- 3
- 31
- 47
1
vote
1 answer
AssemblyResolve fired for plugin's resources file
My application has an interface IProgressUIPlugin defined in project ProjectNameLib, and the interface is implemented in another DLL. My main application directly references ProjectNameLib and loads the interface implementation's assembly from the…

Warty
- 7,237
- 1
- 31
- 49
1
vote
1 answer
How to resolve .NET dependency of COM component?
This is my current deployment scenario:
Client application is deployed in folder A
COM DLL, C++/CLI wrapper DLL and .NET assembly are deployed in folder B
DLLs/assemblies together form an SDK, the client application is a third-party consumer
This…

herzbube
- 13,158
- 9
- 45
- 87
1
vote
1 answer
Fail to load assembly on a MVC View
Some Context
I have one closed source asp.net MVC application distributed for several customers. I'm trying to develop a extension to include some very specific functionalities that will be used by a single customer (he will also have the extension…

lstern
- 1,599
- 14
- 27