English

Error: IWorkspaceFactory error -2147220952 License not initialized or -2147467259 Unspecified error

Error Message

While stepping through an ArcObjects ActiveX DLL project in the Visual Basic 6 debugger, opening a workspace displays the following error message:

"IWorkspaceFactory::Open, IWorkspaceFactory::OpenFromFile or
IWorkspaceFactory2::OpenFromString throw error -2147220952 (80040228) "License not initialized" or -2147467259 (80004005) "Unspecified error"."

The same code runs fine outside the debugger.

Cause

This is due to the way the Visual Basic 6 in-process debugger interacts with ArcGIS 9.2 and its licensing mechanism.

Solution or Workaround

Use Visual C++ 6 to debug the code. See the link in the Related Information section below for more information.

    Related Information