views:

423

answers:

4

Any tricks in getting WatiN to run on Win7/IE8?

My code:

    browser = new IE();
    browser.GoTo("http://testserver");
    browser.TextField(Find.ByName("txtUser")).TypeText("tyndall");

The third line never really runs and I get an error back:

System.Runtime.InteropServices.COMException : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

The second line seems to run. IE8 appears and is navigated to the correct URL.

A: 

So??? I'm with the same problem.

Tom
+3  A: 

Running Visual Studio as Administrator solved this problem for me. (Visual Studio 2008 with WatiN 2.0.20).

Daniel Lee
@Daniel Lee: +1 It also worked for me.
Fábio Antunes
+1  A: 

The other alternative to avoid running Visual Studio or NUnit as an admin would be to disable UAC at a machine level, which shouldn't be a security issue if you are running with least privileges (which you should be).

Mike
+1  A: 

in win 7 sp1
reduce security level in user configuration managment

Nelson Gómez
Did I miss a SP1 patch somehow? You do mean the Windows User Security screen right? I'll give that a shot. +1
tyndall