[英]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.