简体   繁体   English

无法加载文件或程序集'Dapper,Version = 1.8.0.0,Culture = neutral,PublicKeyToken = null'或其依赖项之一

[英]Could not load file or assembly 'Dapper, Version=1.8.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies

I am unable to solve this problem, "System.Exception : Could not load file or assembly 'Dapper, Version=1.8.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified." 我无法解决此问题, “System.Exception:无法加载文件或程序集'Dapper,Version = 1.8.0.0,Culture = neutral,PublicKeyToken = null'或其依赖项之一。系统找不到指定的文件。 “

I have check the references in all of the projects in my solution, checked the nuget packages, checked the project file and cant find any reference to Dapper Version 1.8.0.0. 我检查了我的解决方案中所有项目中的引用,检查了nuget包,检查了项目文件,无法找到对Dapper Version 1.8.0.0的任何引用。

When I try and run tests it fails and I can't move my ASP.NET MVC application forward. 当我尝试运行测试时它失败了,我无法移动我的ASP.NET MVC应用程序。

Any thoughts on what else to try? 还有什么想法尝试?

The best way to diagnose the DllNotFoundException is to enable fusion log viewer. 诊断DllNotFoundException的最佳方法是启用融合日志查看器。 Here is what you need to do: Open the Visual Studio Developer command prompt as an Administrator -> type in fuslogvw -> -> Click settings -> select Log bind failure to disk (You can set a custom path for the log files). 您需要执行以下操作:以管理员身份打开Visual Studio Developer命令提示符 - >键入fuslogvw - > - >单击设置 - >选择将日志绑定失败归档到磁盘(您可以为日志文件设置自定义路径)。 Run your application and start reading the logs (The log title will most likely contain your DLL name). 运行您的应用程序并开始阅读日志(日志标题很可能包含您的DLL名称)。 Don't forget to disable logging after you are done or your hard drive will be filled in no time. 完成后不要忘记禁用日志记录,否则您的硬盘驱动器将立即填满。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C#:无法加载文件或程序集'OpenPop,Version = 2.0.4.369,Culture = neutral,PublicKeyToken = null'或其依赖项之一 - C#: Could not load file or assembly 'OpenPop, Version=2.0.4.369, Culture=neutral, PublicKeyToken=null' or one of its dependencies 无法加载文件或程序集“BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null”或其依赖项之一 - Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies 无法加载文件或程序集'XXX,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'或其依赖项之一 - Could not load file or assembly 'XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies 无法加载文件或程序集'System,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 561934e089'或其依赖项之一 - Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=561934e089' or one of its dependencies 无法加载文件或程序集“Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=myKey”或其依赖项之一。 - Could not load file or assembly 'Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=myKey' or one of its dependencies. 无法加载文件或程序集'itextsharp,Version = 5.5.0.0,Culture = neutral,PublicKeyToken = 8354ae6d2174ddca'或其依赖项之一 - Could not load file or assembly 'itextsharp, Version=5.5.0.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies 无法加载文件或程序集“Microsoft.Bcl.AsyncInterfaces,Version=1.0.0.0,Culture=neutral,PublicKeyToken=XX”或其依赖项之一 - Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XX' or one of its dependencies 无法加载文件或程序集“工具,版本= 4.5.0.0,区域性=中性,PublicKeyToken = f7660c0f5438cda5”或其依赖项之一 - Could not load file or assembly 'Tools, Version=4.5.0.0, Culture=neutral, PublicKeyToken=f7660c0f5438cda5' or one of its dependencies 无法加载文件或程序集“系统,版本=4.0.0.0,文化=中性,PublicKeyToken=b77a5c561934e089”或其依赖项之一 - Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies Nuget -“无法加载文件或程序集'{类名},版本 = xxx,文化 = 中性,PublicKeyToken = null'或其依赖项之一” - Nuget - " Could not load file or assembly '{Class Name}, Version= x.x.x., Culture=neutral, PublicKeyToken=null' or one of its dependency"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM