Questions tagged [assembly-resolution]
229 questions
1
vote
1 answer
How can I resolve an AssemblyName to an assembly file path without loading that assembly?
Is there any public API in the .NET Framework, in .NET Core, or in .NET Standard that can resolve a System.Reflection.AssemblyName to a file path of the assembly file that would be loaded, without actually loading that assembly?
The best I've…

stakx - no longer contributing
- 83,039
- 20
- 168
- 268
1
vote
2 answers
Discovering which assemblies are loading which dependencies (at runtime)
What's the easiest way to discover which assembly is triggering certain dependencies to be loaded at runtime? I've got a stray reference to an old assembly somewhere, in one of the 100+ assemblies that get loaded as part of our application.
Using…

James Crowley
- 3,911
- 5
- 36
- 65
1
vote
2 answers
configure assemblyBinding once for multiple executables
I have a folder that contains multiple executables. Currently the assembly binding redirect is configured in each executable.exe.config file. Is there a way to configure this just once and all executables in that folder pick this up automatically?…

bitbonk
- 48,890
- 37
- 186
- 278
1
vote
1 answer
C# build against non specific version of strong-named assembly
According to MSDN:
When you build a .NET Framework application against a specific version
of a strong-named assembly, the application uses that version of the
assembly at run…

DanielG
- 1,217
- 1
- 16
- 37
1
vote
4 answers
Runtime error when trying to run Fluent NHibernate tutorial example
I worked through the Fluent NHibernate tutorial at http://wiki.fluentnhibernate.org/Getting_started and the project compiles fine.
However, I am getting a runtime error and I can't seem to resolve it. The error is happening in the…

Seth Spearman
- 6,710
- 16
- 60
- 105
1
vote
2 answers
How are .NET assembly references "translated" to file paths?
I'm trying to troubleshoot a .NET 2.0 error with Outlook Web Access on a SBS 2008 Server.
The error I'm getting is:
Exception information:
Exception type: HttpException
Exception message: Could not load file or assembly 'Microsoft.Exchange.Data, …

gravyface
- 889
- 2
- 12
- 26
1
vote
0 answers
How can I redirect a strongly named assembly by code using AssemblyResolve or otherwise?
The typical way of creating an assembly redirect is by using bindingRedirect in app.config or dllname.dll.config. Alternatively, many posts on MSDN say that you can do so programmatically by using AssemblyResolve (I bind the event as early as…

Abel
- 56,041
- 24
- 146
- 247
1
vote
3 answers
Referencing Assemblies in a .Net Application
In my application, I would like to load Assemblies that reside on a network share (The application itself is on that share, too) without having to add them to the project's output path. What I'd like to have is an output directory that contains next…

Sebastian Edelmeier
- 4,095
- 3
- 39
- 60
1
vote
0 answers
.net assembly resolution handler fails in one machine but succeeds in another
I have noticed differences in how .net resolves assemblies in 2 different machines. In one machine it seems to be doing it as it executes line-by-line and in another machine per method.
Lets say I have the following in Test.dll:
public class…

alital
- 411
- 5
- 15
1
vote
1 answer
Unable to find assembly Nhibernate
I'm developing a web app using NHibernate, and getting the error
Unable to find assembly 'NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'
The weird thing is that it's intermittent, and when ti happens it causes the…

Dr. Evil
- 61
- 3
1
vote
2 answers
Fully Qualified Type Resolution in .NET
Simple question (comes up in SharePoint 2010, but that's not really relevant).
How does:

Nariman
- 6,368
- 1
- 35
- 50
1
vote
2 answers
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…

Terry
- 2,148
- 2
- 32
- 53
1
vote
1 answer
Is it possible to run Silverlight code using the runtime of the full .NET framework?
To integrate with the current system for continuous integration, we want to use NUnit for testing (non UI) Silverlight code. Doing this means executing Silverlight code using the runtime of the full .NET framework which usually works just fine as…

SoftMemes
- 5,602
- 4
- 32
- 61
1
vote
1 answer
Using Assembly Reference in Global.asax?
I have an app that our offshore developers are trying to update. The code built with no issues a year ago. Now when they checkout the code and try to build it they get a reference error in Global.asax:
Error 1 The type or namespace name…

Richard Schaefer
- 525
- 3
- 13
- 45
1
vote
1 answer
Compiling .NET component that uses a non specific required version of a 3rd Party Vendor component
If someone were to develop a .NET component that relied on non specific versions of a vendor DLL - let's say it worked with My3rdPartyComponent.dll which is a .NET assembly, but it didn't matter which version.
Some instances of classes found in this…

Dan
- 905
- 4
- 10
- 16