Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WatiN error: cannot load

Tags:

watin

I am working on a new test project with watiN, but always get this error,

Could not load file or assembly 'WatiN.Core, Version=2.0.3.913, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Did I miss something? thanks.

like image 786
Fred Avatar asked Apr 16 '26 13:04

Fred


1 Answers

The assembly appears to be strongly named so you can install it in the GAC (open C:\windows\assembly and drag the dll into there). You may need to download it from the internet if you can't find it on your computer.

Failing that, are you on a 64 bit computer? It may be that watin requires you to execute your program as a 32 bit application (In Visual Studio, this is under the "Build Configuration" section).

like image 171
Matthew Steeples Avatar answered Apr 19 '26 11:04

Matthew Steeples



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!