ERROR

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

Last Published: April 25, 2020

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.

    Article ID:000009303

    Software:
    • ArcMap 9 x

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Related Information

    Discover more on this topic