DLL Failed to Register during Install or Uninstall

Product: VisionPro
Platform: All Platforms

Full Description

The following error message (or similar) will occur during installation or uninstallation of VisionPro:

Error 1905.Module C:\Program Files\Cognex\VisionPro\bincogxstd.dll failed to unregister. HRESULT -2147220472. Contact your support personnel.


This is caused by "Data Execution Prevention". To work around this issue, disable Data Execution Prevention (DEP) while installing or uninstalling.

To tell if you have DEP enabled:

  1. Open System Properties.
  2. Select the Advanced tab.
  3. Under the Performance section, click Settings.
  4. Select the Data Execution Prevention tab. If the buttons and the DEP settings are not grayed out, DEP is enabled.

To disable DEP:

  1. Verify the Administrator account is running for Windows XP.
  2. Right-click on My Computer and select Properties.
  3. Click on the Advanced tab.
  4. Select the Settings button under Startup and Recovery.
  5. Locate the line by the default operating system that reads: "Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
  6. Locate and change the boot.ini, by clicking on the Edit button, and then change /NoExecute=OptIn to /NoExecute=AlwaysOff.
  7. Save the file and reboot.
  8. After installation, change the boot.ini back to its original state, returning the added layer of security.