Load File or Assembly Error

Load File or Assembly — Business Central

Error al cargar un archivo o ensambladoCould not load file or assembly

Solución para Microsoft.IdentityModel.Clients.ActiveDirectory en Business Central 130Fix for Microsoft.IdentityModel.Clients.ActiveDirectory in Business Central 130

Business Central · RTC
El problemaThe problem

El cliente no encuentra una dependencia requeridaThe client cannot find a required dependency

Al ejecutar el cliente aparece un mensaje indicando que no se puede cargar el ensamblado de Active Directory o alguna de sus dependencias.When the client starts, a message reports that the Active Directory assembly or one of its dependencies cannot be loaded.

Ensamblado solicitadoRequested assembly Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.28.2.795, Culture=neutral, PublicKeyToken=31bf3856ad364e35
O 
Information 
Could not load file or assembly 
'Microsoft.IdentityModeI.CIients.ActiveDirectory, 
Version=2.28.2.7g5, Culture—neutral, 
PublicKeyToken=31 bf38S6ad3E4e35' or one of its dependencies. 
The system cannot find the file specified.
Mensaje original mostrado por el cliente.Original message displayed by the client.
SoluciónSolution
OrigenSource..\130\Service
DestinoDestination..\130\RoleTailored Client

Copia los dos archivos resaltadosCopy the two highlighted files

Localiza estas DLL en la carpeta Service y cópialas en la carpeta del RoleTailored Client.Locate these DLL files in the Service folder and copy them to the RoleTailored Client folder.

Microsoft.IdentityModel.Clients.ActiveDirectory.dll
Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll
Blog-29/10/2018-image2.png
Archivos resaltados dentro de la carpeta Service.Highlighted files inside the Service folder.
1Abre ServiceOpen Service

Accede a la carpeta de servicio de la versión 130.Open the Service folder for version 130.

2Copia las DLLCopy the DLL files

Selecciona los dos ensamblados indicados.Select the two specified assemblies.

3Pega en el clientePaste into the client

Cópialos en la carpeta RoleTailored Client.Copy them into the RoleTailored Client folder.

Microsoft Dynamics 365 Business Central · Version 130 · RoleTailored Client

Comentarios