Realmente necesito ayuda sobre esto porque perdí la esperanza de corregir el problema.Error de enlace de ensamblaje infame
Estoy utilizando las bibliotecas de Office Communications Server de 64 bits. Hay 3 dlls que uso en el proyecto, Microsoft.Rtc.Collaboration.dll, Microsoft.Rtc.Internal.Media.dll y SIPEPS.dll. No estoy seguro acerca de Microsoft.Rtc.Collaboration, pero Internal.Media y SIPEPS son ambos x64. En la lista de ensamblado del GAC, Rtc.Colaboración muestra MSIL en arquitectura de procesador y los demás muestran AMD64.
Mi proyecto se compila sin errores con estas referencias, pero en tiempo de ejecución que recibe el error:
No se pudo cargar el archivo o ensamblado 'Microsoft.Rtc.Internal.Media' o uno de sus dependencias. Se intentó cargar un programa con un formato incorrecto.
Intenté compilar el proyecto con la CPU configurada en Cualquier CPU pero nada cambia. Con ambas configuraciones x64 y x86 recibo este error.
Cualquier ayuda es apreciada.
ACTUALIZACIÓN: A continuación se muestra el registro de enlace de montaje.
=== Pre-bind state information ===
LOG: User = CONTOSO\elodie
LOG: DisplayName = Microsoft.Rtc.Internal.Media
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Microsoft.Rtc.Internal.Media | Domain ID: 9
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Users/elodie/Documents/Visual Studio 2010/Projects/TFS/proto/Main/Source/WebBot.Web/
LOG: Initial PrivatePath = C:\Users\elodie\Documents\Visual Studio 2010\Projects\TFS\proto\Main\Source\WebBot.Web\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\elodie\Documents\Visual Studio 2010\Projects\TFS\proto\Main\Source\WebBot.Web\web.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/e3d82f59/764fa8c3/Microsoft.Rtc.Internal.Media.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/e3d82f59/764fa8c3/Microsoft.Rtc.Internal.Media/Microsoft.Rtc.Internal.Media.DLL.
LOG: Attempting download of new URL file:///C:/Users/elodie/Documents/Visual Studio 2010/Projects/TFS/proto/Main/Source/WebBot.Web/bin/Microsoft.Rtc.Internal.Media.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
Tuve el problema con las DLL de Microsoft.Dynamics.GP.eConnect. Resultó que mi entorno dev estaba cargando la DLL de 64 bits del GAC, pero la carpeta lib del proyecto tenía la DLL de 32 bits. La versión de 32 bits se estaba implementando. En VS2010, compruebe de dónde se extrae el archivo DLL en la ventana Salida con Mostrar salida desde establecer en Depurar –