Visual Studio Unit Tests : dll is not trusted

前端 未结 5 1535
别那么骄傲
别那么骄傲 2021-01-16 10:02

I\'m struggling getting some unit tests running and wondering if anyone might have anything insightful.

The setup is that we\'ve got a bunch of referenced DLL\'s on

5条回答
  •  一向
    一向 (楼主)
    2021-01-16 11:00

    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. Close VS.
    2. Delete the WatiN directory from Programs Files (x86)
    3. Navigate to my user directory. Search for and delete WatiN dll's.
    4. Navigate to my project directory. Search for and delete all WatiN dll's.
    5. Re-download WatiN.
    6. Right click on the .zip file and unblock the contents before the copy operation.
    7. Recreate the WatiN directory under the Programs Files (x86) and copy the file from the .zip.

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

提交回复
热议问题