You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

An undocumented error code 0x80020101 occurs when you use the ActiveX Scripting interface in Visual C++

This article was previously published under Q247784
Note Microsoft Visual C++ .NET 2002 and Microsoft Visual C++ .NET 2003 support both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model. The information in this article applies only to unmanaged Visual C++ code. Microsoft Visual C++ 2005 supported both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model.
SUMMARY
When you use the ActiveX Scripting interface to host an ActiveX Script Engine, the following methods may return an undocumented error code 0x80020101:
  • IActiveScriptParse::ParseScriptText
  • IActiveScript::InterruptScriptThread
The HRESULT 0x80020101 translates to SCRIPT_E_REPORTED. This error can be observed when a scripting component fails under MTS.
MORE INFORMATION
When an ActiveX Script Engine, such as VBScript or JScript, encounters an error it attempts to report the error to its script host by calling one of the following methods:
  • IActiveScriptSite::OnScriptError
  • IActiveScriptSiteDebug::OnScriptErrorDebug
After one of these methods is called, the script engine must also return an HRESULT from the method that was called when the error occurred. To warn the script host that the error has already been reported, and to ensure that a single error does not result in more than one notification, the script engine returns SCRIPT_E_REPORTED. This indicates that the error has already been handled and the host need not take further action.
0x80020101
Properties

Article ID: 247784 - Last Review: 01/07/2006 00:53:00 - Revision: 5.0

  • Microsoft Visual C++ 5.0 Professional Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual C++ 2005 Express Edition
  • kberrmsg kbinfo kbtshoot kbactivexscript kbprb KB247784
Feedback