Created On:  09 September 2011


When adding ActiveX Components to a .NET Windows Form in Visual COBOL, it builds correctly but when attempting to run the application an error like the following is displayed:

Why is this?


The problem manifests itself in two ways.

Most ActiveX controls are 32-bit so if your project is set to x64 or anyCPU and you are running on a 64-bit OS then this will fail.

If you set the project type to x86 or are using anyCPU on a 32-bit system then it should work as long as you also set the Copy Local property to True on the references that are added to your project by the IDE.
Incident #2536071