无法加载文件或程序集'Autofac,Version = 3.0.0.0

时间:2022-05-14 03:03:49

I am trying to connect enFinder file manager to my asp.net project with this connector. I added Autofac Version 3. Afterwards I removed the reference and added a reference to Autofac 2.6. Now the following error occurs:

我正在尝试使用此连接器将enFinder文件管理器连接到我的asp.net项目。我添加了Autofac版本3.之后我删除了引用并添加了对Autofac 2.6的引用。现在出现以下错误:

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

无法加载文件或程序集'Autofac,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 17863af14b0044da'或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (HRESULT异常:0x80131040)

How can I fix this problem?

我该如何解决这个问题?

1 个解决方案

#1


14  

Delete all Autofac references in your project and add them again, using the correct Autofac DLL. The mismatch occurs when the reference you've added to your project via the Add Reference menu is not the same version as the actual file. This happens when you exchange the physical DLL file on your disk to which the reference in you project points.

删除项目中的所有Autofac引用,并使用正确的Autofac DLL再次添加它们。当您通过“添加引用”菜单添加到项目中的引用与实际文件的版本不同时,会发生不匹配。当您交换项目中的引用所指向的磁盘上的物理DLL文件时,会发生这种情况。

#1


14  

Delete all Autofac references in your project and add them again, using the correct Autofac DLL. The mismatch occurs when the reference you've added to your project via the Add Reference menu is not the same version as the actual file. This happens when you exchange the physical DLL file on your disk to which the reference in you project points.

删除项目中的所有Autofac引用,并使用正确的Autofac DLL再次添加它们。当您通过“添加引用”菜单添加到项目中的引用与实际文件的版本不同时,会发生不匹配。当您交换项目中的引用所指向的磁盘上的物理DLL文件时,会发生这种情况。