WatiN System.IO.FileNotFoundException Interop.SHDocVw

Gilbert Liddell picture Gilbert Liddell · Mar 25, 2011 · Viewed 24.9k times · Source

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?

Answer

scott picture scott · Jun 4, 2011

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".