Questions tagged [assembly-resolution]

229 questions
5
votes
3 answers

Adding references adds wrong version

When adding a reference to VS 2008, the version is listed as v1.0.0.0 when it should be v1.1.0.0 - as far as I can see there is absolutely no reason why it is adding the wrong version. Both projects are written from scratch, no other refs reference…
Mr Shoubs
  • 14,629
  • 17
  • 68
  • 107
5
votes
0 answers

Debugging System.IO.FileLoadException in Unit Test

For a project I am modernizing, I have a suite of unit tests provided by the application's original developers. Earlier in my modernizations they were running fully green; however, they've turned red, but mostly all with the same…
Andrew Gray
  • 3,756
  • 3
  • 39
  • 75
5
votes
3 answers

While building a unit test project, VS 2010 cannot find the referenced assembly for testing

I'm developing a unit test project (let's say XXX.UnitTest) to test ViewModels in another project (XXX) in my solution. I can add the reference but when I build, an error states that it cannot find that same project (XXX) Error 42 Could not load…
Blanthor
  • 2,568
  • 8
  • 48
  • 66
5
votes
1 answer

Drawbacks, advantages, etc. between ILMerge or ResolveAssembly for embedding assemblies?

Currently I know of two methods of embedding assemblies into one application file: ILMerge and using the ResolveAssembly event. I would like to know if anyone have had more success with one over the other. Is there any drawbacks from using either…
Stécy
  • 11,951
  • 16
  • 64
  • 89
5
votes
1 answer

Is supported in Silverlight, Windows Phone, and Metro?

Is supported outside of the full .NET Framework? For instance, the following is supported with a normal .NET app (in app.config or web.config):
5
votes
7 answers

Mimicking assembly resolution of the msbuild process

I am writing a validation tool that checks the versions of files referenced in a project. I want to use the same resolution process that MSBuild uses. For example, Assembly.Load(..) requires a fully-qualified assembly name. However, in the project…
Neil
  • 7,227
  • 5
  • 42
  • 43
4
votes
2 answers

Bin deployed DLLs priority over GAC'd DLL's for Web app?

I am having a problem where an older GAC'd assembly is being used instead of a newer version assembly in the bin. Server: Assembly version: ASP.NET MVC 3 RC 1 (3.0.11029.0) Full name: System.Web.Mvc, Version=3.0.0.0, Culture=neutral,…
AaronLS
  • 37,329
  • 20
  • 143
  • 202
4
votes
1 answer

What is the meaning of Default/NativeImage in fuslogvw?

I occasionally use fuslogvw to track down problems loading assemblies. After all my time of using it, it seems that the folder 'NativeImage' has results for loading native images of my dlls. When the native image is not found (usually its not), I…
TheSean
  • 4,516
  • 7
  • 40
  • 50
4
votes
1 answer

How to add .NET 3.5 and .NET 4.0 assemblies to FxCop code analysis?

I want to analyze a solution that contains projects targeting .NET 3.5 SP1 and some other projects targeting .NET 4 with some dependencies to .NET 3.5 libraries. When I try to add both assemblies, one for .NET 3.5 and another for .NET 4, FxCop…
matthias.lukaszek
  • 2,200
  • 1
  • 23
  • 33
4
votes
1 answer

Odd behavior when attempting to get a Type by AssemblyQualifiedName at runtime

I'm getting a FileLoadException when attempting to deserialize a type using the NetDataContractSerializer: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) This error does not have to do with the serializer…
user1228
4
votes
3 answers

Problems loading assembly dependencies dynamically at run-time

let me try to explain my problem. I'm currently trying to develop a small "plugin-framework" written in .Net (mainly for experimenting a bit). So the idea is to have a main application to which "plugins" can be added by deploying dlls in a specific…
Juri
  • 32,424
  • 20
  • 102
  • 136
4
votes
1 answer

Load external dll's String Resources from an AssemblyResolve event

I'm hooked into the Assembly.Resolve event and loading assemblies at runtime from embedded resources. This much has been working perfectly for years without a single change to the code. Recently, I added a new reference to a dll (external.dll) which…
4
votes
1 answer

Dll replacement issue (riddle in the dark)

The following scenario happens to me both on windows services and web working with ASP.NET application using IIS. I have an application that I want to change its behavior after it was deployed. So to do that I kill the application process (iis…
Ikaso
  • 2,268
  • 19
  • 26
4
votes
1 answer

Is it possible to sidestep leaked assembly dependencies in C#

When an assembly exposes a superfluous (but missing) dependency, is there a clean way to squelch or ignore it? Scenario: Some app uses a FooUtil class, in CoolAssembly.dll. The only methods of concern are FooUtil.AwesomeMethod1 and…
Paul Smith
  • 3,104
  • 1
  • 32
  • 45
4
votes
1 answer

MSBuild cannot find a DLL that has been bindingRedirect'd via web.config

I have an ASP.NET MVC 4 web app. I am using the RazorGenerator.MsBuild build target to precompile my Razor *.cshtml files. When I build my project locally, everything runs great. When I deploy the project to Azure Web Sites, I get this…