.net – WatiN System.IO.FileNotFoundException Interop.SHDocVw

netnunitwatin

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

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.

Can anyone assist?

Best Answer

Have you tried this:

Go to solution explorer, click on the interop dll, in properties change "Embed Interop types" to FALSE.

Best to use NuGet addon for .net studio and then add reference to wattin via "Add Library Package Reference".

Related Topic