Different versions of the same dll in one application c#

93 Views Asked by At

We are currently migrating legacy application from VS2003 .Net 1.1 Windows application to ASP.NET MVC Web Application. Client is going to move from Windows 7 to Windows 10 OS for all system.

Temporarily compile / run legacy windows application from VS2003 .Net 1.1 to VS2012 .Net 2.0 in Windows 10 OS.

We have tried many time to fix the below error in VS2012 .Net 2.0 as possible:

An assembly with the same simple name 
'Interop.VRDPLAYERLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null has already been imported. 
Try removing one of the references or sign them to enable side-by-side.

PublicKeyToken is null for Interop.VRDPLAYERLib.dll version V1.1.4322 & V2.0.50727

In Legacy Windows Application Snip Code:

VRDPlayer.ocx | File Type: ActiveX
VRDPlayer.Register("VRDPlayer.ocx");
....
MethodBuilder meb;
meb.SetImplementationFlags(MethodImplAttributes.PreserveSig | meb.GetMethodImplementationFlags());

Can you please suggest / help us to fix this error. Thanks in Advance.

0

There are 0 best solutions below