WebBrowser.Navigate(…) throws COMException

前端 未结 2 1788
长发绾君心
长发绾君心 2021-02-09 00:55

I\'m developing an Internet Explorer command button that will open a specific web page once clicked. Here\'s a snippet of code (IEApp is a reference to an instance

相关标签:
2条回答
  • 2021-02-09 01:05

    That's ERROR_BUSY usually happens when IE is doing something else, e.g. displaying a window.alert message box.
    Try suppress script errors and Implement IDocHostShowUI and return S_OK without blocking the message pump

    0 讨论(0)
  • 2021-02-09 01:24

    could this help: turning off UAC in Windows, if you are using a server kind version:

    screen-shoots here: http://blog.vincentbrouillet.com/post/2011/02/10/watin%3A-The-requested-resource-is-in-use

    I had this error, and it was quite random. I tried killing IE before running the tests. It kind of work, but not all the time.

    0 讨论(0)
提交回复
热议问题