简体   繁体   English

无法加载文件或程序集“Microsoft.QualityTools.Testing.Fakes”或其依赖项之一

[英]Could not load file or assembly 'Microsoft.QualityTools.Testing.Fakes' or one of its dependencies

This happened in Visual Studio 2022 Community version.这发生在 Visual Studio 2022 Community 版本中。

System.IO.FileLoadException: Could not load file or assembly 'Microsoft.QualityTools.Testing.Fakes' or one of its dependencies. Access is denied. File name: 'Microsoft.QualityTools.Testing.Fakes'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)    at System.Reflection.Assembly.Load(String assemblyString)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Tried to create deleting Fakes folder and rebuilding my solution.试图创建删除 Fakes 文件夹并重建我的解决方案。 Nothing.没有什么。 Created [HKLM\Software\Microsoft\Fusion.EnableLog] just gave more details of the error.创建 [HKLM\Software\Microsoft\Fusion.EnableLog] 只是提供了错误的更多详细信息。

Found out that my solution build attempted to create the microsoft.qualitytools.testing.fakes, but there was already a dll in the bin folder.发现我的解决方案构建试图创建 microsoft.qualitytools.testing.fakes,但 bin 文件夹中已经有一个 dll。 Deleted it and the build worked.删除它并且构建工作。

暂无
暂无

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

相关问题 VS2017 无法加载文件或程序集 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 或其依赖项之一 - VS2017 Could not load file or assembly Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll or one of its dependencies BadImageException:'无法加载文件或程序集'Microsoft.VisualStudio.QualityTools.VideoRecorderEngine'或其依赖项之一。 - BadImageException: 'Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.VideoRecorderEngine' or one of its dependencies.' 需要解决Microsoft.QualityTools.Testing.Fakes - Need a work around Microsoft.QualityTools.Testing.Fakes 无法加载文件或程序集“ Microsoft.AspNet.Scaffolding.12.0”或其依赖项之一 - Could not load file or assembly 'Microsoft.AspNet.Scaffolding.12.0' or one of its dependencies 无法加载文件或程序集或其依赖项之一。 - Could not load file or assembly or one of its dependencies. 错误0004:无法加载文件或程序集或其依赖项之一 - error 0004: Could not load file or assembly or one of its dependencies 无法加载文件或程序集...或其依赖项之一。尝试加载格式不正确的程序(.resx文件) - Could not load file or assembly … or one of its dependencies. An attempt was made to load a program with an incorrect format (.resx file) XamlParseException:无法加载文件或程序集“ ResourceLibrary,...”或其依赖项之一。 该系统找不到指定的文件 - XamlParseException: Could not load file or assembly 'ResourceLibrary, …' or one of its dependencies. The system cannot find the file specified 无法加载文件或程序集'quickfix_net.dll'或其依赖项之一 - could not load file or assembly 'quickfix_net.dll' or one of its dependencies 无法加载文件或程序集“Accord.Video.FFMPEG.dll”或其对“单击一次安装”的依赖项之一 - Could not load file or assembly 'Accord.Video.FFMPEG.dll' or one of its dependencies on Click Once Install
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM