且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio单元测试:不信任dll

更新时间:2023-12-06 12:54:22

Ian拥有为我启动修复程序的密钥.我试图在Windows 7 64bit上使用WatiN,并不断收到不可信"错误.这是我要修复的步骤.

Ian had the key that started the fix for me. I'm attempting to use WatiN on Windows 7 64bit and kept getting the "not trusted" error. Here are the steps I took to fix it.

  1. 关闭VS.
  2. 从程序文件(x86)删除WatiN目录
  3. 导航到我的用户目录.搜索并删除WatiN dll.
  4. 导航到我的项目目录.搜索并删除所有WatiN dll.
  5. 重新下载WatiN.
  6. 右键单击.zip文件,然后在复制操作之前取消阻止内容.
  7. 在程序文件(x86)下重新创建WatiN目录,然后从.zip中复制文件.

除非得到流浪的WatiN dll的VS,否则它将继续访问不受信任的DLL并让您发疯.

Unless you get the stray WatiN dll's VS will continue to access the untrusted DLL's and drive you nuts.