ASP.NET Unit Testing - WatiN and Windows 7 / Internet Explorer 8

可紊 提交于 2019-12-05 13:19:53
Nick Josevski

Reboot the machine

There are windows updates getting in the way of instantiating new COM objects.

See my answer on this question for more details:

WatiN, NUnit and CruiseControl.NET-- Error message 800704a6

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

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

in win 7 sp1
reduce security level in user configuration managment

I started to get the same exceptions: "System.Runtime.InteropServices.COMException : The RPC server is unavailable." after closing IE while the Developer Tools pane was open.

Hit F12 to close the developer pane and make sure it is closed whenever you close IE (IE remembers the state when starting).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!