开发者

WatiN: Error opening Internet Explorer

I have a C# (Visual Studio 2010) project that opens Internet Explorer 8 like this:

Brower browser = new WatiN.Core.IE( "http://google.com");

This used to work, but I had some problem开发者_运维知识库s that required me to reinstall Internet Explorer (I am on Window 7). I am using the .NET 4.0 framework (although I have tried changing).

Now, I get this exception:

Retrieving the COM class factory for component with CLSID {0002DF01-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).

I can open Internet Explorer manually, fine.

I am using Watin 2.0 (I have also tried 2.1).


I switched project from "Any CPU" to "x86" and this problem went away. I am on a 64-bit CPU.


Can you give this a try?

Browser browser = new WatiN.Core.IE.GoTo( "http://google.com");

GoTo is an existing method of WatiN

Cheers.


In my case, it was due to a Malware software that blocked the execution on my Windows. Once I close the app QQPCTray.exe, IE browser will launch and run successfully.

You can try to shutdown any detection software that may be running and try again.

Try running the app on a fresh Windows environment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜