var kba = new KBAlertz { "Launch Date" = "October 30th, 2013" }

Article ID: 251133
This article was previously published under Q251133

Symptoms

When you call the ExecWB method in the Microsoft Web Browser Control, you may receive one of the following error messages:
Run-time error '-2147417848 (80010108)':
Method 'ExecWB' of object 'IWebBrowser2' failed
-or-
Run-time error '-2147221248 (80040100)':
Method 'ExecWB' of object 'IWebBrowser2' failed
Run-time error '-2147221248 (80040100)':
Trying to revoke a drop target that has not been registered

Cause

This behavior is by design.

More information

The following OLECMDID values are not defined for use by the IWebBrowser2::ExecWB() method:
  • OLECMDID_NEW

  • OLECMDID_SAVECOPYAS

  • OLECMDID_PRINTPREVIEW

  • OLECMDID_SPELL

  • OLECMDID_PASTESPECIAL

  • OLECMDID_HIDETOOLBARS

  • OLECMDID_STOPDOWNLOAD

  • OLECMDID_ONTOOLBARACTIVATED

  • OLECMDID_FIND

  • OLECMDID_DELETE

  • OLECMDID_HTTPEQUIV

  • OLECMDID_HTTPEQUIV_DONE

  • OLECMDID_ENABLE_INTERACTION

  • OLECMDID_PROPERTYBAG2

  • OLECMDID_SHOWSCRIPTERROR

  • OLECMDID_SHOWMESSAGE

  • OLECMDID_SHOWFIND

  • OLECMDID_SHOWPAGESETUP

  • OLECMDID_SHOWPRINT

  • OLECMDID_CLOSE

  • OLECMDID_ALLOWUILESSSAVEAS

References

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
http://msdn.microsoft.com/ie/

http://support.microsoft.com/iep

Properties

Article ID: 251133 - Last Review: October 25, 2012 - Revision: 6.0
Keywords: 
kbnofix kbprb kbwebbrowser KB251133
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.