I have a Windows service that the executable calls a dll (which I'll call MyMyDll.dll) with version 0.6.7.3, for example.
Everything works correctly until I updated that dll to version 0.6.7.4. That when restarting the service, so that it takes the new version of the dll, it returns the following error:
The service can not be started. System.IO.FileLoadException: I do not know You can load the file or assembly 'MyDiName, Version = 0.6.7.3, Culture = neutral, PublicKeyToken = 59f75f9107acaf71 'not one of your dependencies. The assembly manifest definition does not match with the reference to the assembly. (Exception from HRESULT: 0x80131040) File name: 'NombreMiDll, Version = 0.6.7.3, Culture = neutral, PublicKeyToken = 59f75f9107acaf71 'in CallerCofnaService.Service1.OnStart (String [] args) in System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback (Object state)
AVS: The assembly link record is deactivated. For enable the error log of the assembly link, set the registry value [HKLM \ Software \ Microsoft \ Fusion! EnableLog] (DWORD) as 1. Note: there is a decrease in the associated performance error log of the assembly link. To deactivate this feature, delete the registry value [HKLM \ Software \ Microsoft \ Fusion! EnableLog].
Would anyone know how to avoid this error, and be able to update the dll without any problem? The dll is updated automatically and alone, verifying every X time if there is a new version. If there is the download and restart the service.
The dll I have compiled myself, and it is written in c # Framework 2.0 (project requirements).
Thanks in advance.