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



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 5
  • Microsoft Internet Explorer (Programming) 5.01

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 the ExecWB Method, please see the following Web address: For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbnofix kbprb kbWebBrowser KB251133