Windows 7 and 64-bit issues

Problem: You receive the follow error when adding INGEAR Studio ActiveX to form.

"Failed to create component ‘AxHost’. This error follows System.BadImageFormatException a wrapper library is not registered for this type library."

 

Resolution: Turn off Windows Data Execution Prevention.

Select Start |All Programs | Accessories | Command Prompt then right click and select Run as administrator

images\ebx_-1582261874.gif

In the command prompt window, type in the command bcdedit.exe /set {current} nx AlwaysOff and press Enter

images\ebx_-1904744203.gif

You should see "The operation completed successfully". Close the Command Prompt.

 

Problem: You receive the following error.

System.InvalidOperationException was unhandled

  Message="An error occurred creating the form. See Exception.InnerException for details.  The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"

 

Resolution: Your Visual Studio project is targeting a 64-bit CPU.

1). Open your project in Visual Studio

2). Select Project | Properties | Compile | Advanced Compile Options | Target CPU (x86)