Microsoft Knowledge Base Email Alertz

When you call the ExecWB method in the Microsoft Web Browser Control, you may receive one of the following error messages:

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

PRB: Run-Time Error When You Call the ExecWB Method

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.
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate