Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Linker remaping DLL name in C# app.

$
0
0

Hello,

I have an application which builds fine in VS2008, but when I want to start it, it reports that it cannot load the required assembly:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'MyAssm, Version=4.1.0.0, Culture=neutral, PublicKeyToken=41d4dd75228c4ccb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'MyAssm, Version=4.1.0.0, Culture=neutral, PublicKeyToken=41d4dd75228c4ccb'
   at MyDemo.WindowsDemoForm..ctor()

The reason for this failure is inside the compiled exe namely, In the manifest of the executable it is written:

.assembly extern MyAssm as MyAssm_12

How do I get rid of this remapping? The actual assembly has version 4.2.2.0

Thanks!
Atmapuri


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>