简体   繁体   English

使用编码的 UI 测试时无法加载文件或程序集'WebDriver,版本 = 2.53.1.0

[英]Could not load file or assembly 'WebDriver, Version=2.53.1.0 when using coded UI Testing

Since today I get the following new Error message:从今天开始,我收到以下错误消息:

System.IO.FileLoadException: Could not load file or assembly 'WebDriver, Version=2.53.1.0, Culture=neutral, PublicKeyToken=1c2bd1631853048f' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) ---> System.IO.FileLoadException: A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

Everything worked fine until yesterday and now I lost 6 out of my 7 test VMs to this error.直到昨天一切正常,现在我的 7 个测试虚拟机中有 6 个因此错误而丢失。

I read every documentation I could find and tried to compare the non working VMs with the the non working version and could not find a difference.我阅读了我能找到的所有文档,并尝试将非工作虚拟机与非工作版本进行比较,但找不到差异。

Suspicious is the Version=2.53.1.0 as the current WebDriver DLL is 4.4.0.可疑的是Version=2.53.1.0 ,因为当前的 WebDriver DLL 是 4.4.0。 Where could the reference to this potential old DLL come from?对这个潜在的旧 DLL 的引用从何而来?

Is there a debug or logging option I could activate?是否有我可以激活的调试或日志记录选项? A way to see which DLLs are loaded?一种查看加载了哪些 DLL 的方法?

Needless to say that with only 1 out of 7 Testmachines we will not be able to meet the deadline.不用说,如果只有 7 台 Testmachine 中的 1 台,我们将无法在最后期限前完成。

Got it.知道了。 It's the other way around.这是相反的方式。 I must not use a new version.不能使用新版本。 I must use an old 2.53 version.必须使用旧的 2.53 版本。

The update must have slipped in because I can't remember updating them consciously.更新一定是溜进来了,因为我不记得有意识地更新了它们。

For those who have similar problems: Extract the content of selenium-dotnet-strongnamed-2.53.1.zip into C:\Program Files (x86)\Common Files\microsoft shared\VSTT\Cross Browser Selenium Components\对于有类似问题的人:将selenium-dotnet-strongnamed-2.53.1.zip的内容提取到C:\Program Files (x86)\Common Files\microsoft shared\VSTT\Cross Browser Selenium Components\

Adjust destination directory if you have an unusual Windows installation.如果您有不寻常的 Windows 安装,请调整目标目录。

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

相关问题 无法加载编码用户界面的文件或程序集 - Couldnot load file or assembly for Coded UI 无法加载文件或程序集'Telerik.Web.UI,版本= 2008.3.1105.35 - Could not load file or assembly 'Telerik.Web.UI, Version=2008.3.1105.35 使用 x64 版本的 Kitware.VTK 时“无法加载文件或程序集 Kitware.VTK” - "Could not load file or assembly Kitware.VTK" when using x64 version of Kitware.VTK 单元测试错误,无法加载文件或程序集 - Unit testing error, could not load file or assembly 无法加载缺少特定版本的文件或程序集 - Could not load file or assembly with specific version missing 无法加载文件或程序集'AjaxControlToolkit,版本= 4.1.7.1213 - Could not load file or assembly 'AjaxControlToolkit, Version=4.1.7.1213 无法加载文件或程序集不是确切的版本 - Could not load file or assembly Not exact version 无法加载文件或程序集 'LinqToExcel, Version - Could not load file or assembly 'LinqToExcel, Version 无法加载文件或程序集 IronPython 版本 = 2.7.9.0 - Could not load file or assembly IronPython Version=2.7.9.0 无法加载文件或程序集 'EntityFramework,版本 = 6.0.0.0, - Could not load file or assembly 'EntityFramework, Version=6.0.0.0,
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM