Failed to load file or assembly "Autofac, Version = 3.0.0.0

I am trying to connect the enFinder file manager to my asp.net project using the connector . I added Autofac Version 3. After that, I removed the link and added the link to Autofac 2.6. Now the following error occurs:

Failed to load file or assembly "Autofac, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = 17863af14b0044da" or one of its dependencies. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

How can I fix this problem?

+6
source share
1 answer

Remove all Autofac links in your project and add them again using the correct Autofac DLL. The mismatch occurs when the link you added to the project through the "Add Link" menu does not match the version of the actual file. This happens when you exchange a physical DLL file on your disk that is referenced in your project.

+11
source

Source: https://habr.com/ru/post/955085/


All Articles