Griaule Biometrics

Home » Error message when you drag and drop the AFIS component to a form in Visual Studio 2005: "Failed to import the ActiveX control."

Knowledge Base

Add to Delicious  Add to browser favorites Positive Negative

Title: Error message when you drag and drop the AFIS component to a form in Visual Studio 2005: "Failed to import the ActiveX control."

SYMPTOMS

  • Error message when you drag and drop the AFIS component to a form in Visual Studio 2005 shows up: "Failed to import the ActiveX control.
  • Problem using Griaule AFIS SDK with DEP enabled.

CAUSE

  • Minor bugs that will be corrected in the next version.

SOLUTION

  1. Download AFIS ActiveX 1.0.10 or later
  2. If Visual Studio is opened, close it;
  3. Replace GriauleAfisX.dll with the version 1.0.10 you downloaded;
  4. Check if the ActiveX GriauleAfis is registered correctly (regsvr32 GriauleAfisX.dll);
  5. Open the project in the Visual Studio again;
  6. Check if the component is imported and active on the "Toolbox";
  7. If you are using VS 2005, before drag and drop the component GriauleAfis to the form, add a reference to the OLE Automation in your project:
    ( This step is necessary, because VS2005 does not know how to resolve the dependences about the COM stdole. And it does not know to compile the assembly wrapper AxGriauleAfisXLib.dll.
    - In "Solution Explorer", click with the right button on your project;
    - Click "Add Reference";
    - Select the option "COM";
    - Select the component "OLE Automation";
    - Click "OK";
  8. Drag and drop the component GriauleAfis to the Form.

APPLIES TO

  • Griaule AFIS SDK 1.0.10 or later