WAtin :Could not load file or assembly

1

Am getting this error : "Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

I know many people already asked about it, but I've tried all the solutions suggested and still nothing! Am Using VS2010, .NET framework version 4, and am trying to use WATin along with Web browser control.

I've tried all the suggested solutions here WatiN System.IO.FileNotFoundException Interop.SHDocVw

c#
.net
visual-studio-2010
watin
asked on Stack Overflow Oct 17, 2011 by dimazaid • edited May 23, 2017 by Community

2 Answers

1

This might be a bit of a long shot. Bring up your project properties and double check that your Target Framework (on the Application tab) is set to ".NET Framework 4", not ".NET Framework 4 Client Profile".

answered on Stack Overflow Oct 18, 2011 by Phil Lambert
0

Right click on Interop.SHDocVw in the project references. Change Embed Interop Types to False and then set Copy Local to True. Worked for me.

answered on Stack Overflow Feb 18, 2019 by Adam Dixon

User contributions licensed under CC BY-SA 3.0