华廷System.IO.FileNotFoundException Interop.SHDocVw [英] WatiN System.IO.FileNotFoundException Interop.SHDocVw

查看:533
本文介绍了华廷System.IO.FileNotFoundException Interop.SHDocVw的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始运行我的华廷测试时,收到以下错误。

I have just started to receive the following error when running my WatIn tests.

System.IO.FileNotFoundException:找不到无法加载文件或程序集   Interop.SHDocVw,版本= 1.1.0.0,文化=中立,   公钥= db7cfd3acb5ad44e或它的某一个依赖。该   系统找不到指定的文件。

System.IO.FileNotFoundException : Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The system cannot find the file specified.

我在网上搜索并尝试以下解决方案,工作。

I have searched the web and tried the following solutions, none of which work.

  • http://linrayusa.blogspot.com/2008/08/vsts-2008-could-not-load-file-or.html
  • WatiN Error Could not Load Assembly
  • http://blogs.msdn.com/b/dougste/archive/2006/09/05/741329.aspx

任何人都可以帮助?

推荐答案

我总是最后重新编译华廷所以它是没有签名,因为我不能让任何建议的解决方案的工作之一。

I always end up recompiling watin so it isn't signed, as I couldn't make any of the suggested solutions work either.

您可以在这里得到源: http://watin.org/

You can get the source here: http://watin.org/

打开\来源\ src文件夹的解决方案(有VS2008和VS2010版本),打开两个项目,并进入属性 - >签名,取消选中程序集签名,并建立了解决方案

Open the solution in the \source\src folder (there are VS2008 and VS2010 versions), open both projects and go properties -> Signing, uncheck 'sign the assembly', and build the solution.

您应该得到\源两个dll的\ src \核心\ BIN(WatiN.Core.dll和Interop.SHDocVw.dll) - 只是这些复制到你的项目,他们应该确定

You should get two DLLs in \source\src\Core\bin (WatiN.Core.dll and Interop.SHDocVw.dll) - just copy these into your project and they should work Ok.

这篇关于华廷System.IO.FileNotFoundException Interop.SHDocVw的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆