Exception on start of new application

Forum for reporting problems
Post Reply
Oleg Skvortsov
Posts: 0
Joined: Sun Feb 23, 2014 6:28 am

Exception on start of new application

Post by Oleg Skvortsov »

Hello
I am a newbie. I am using C# windows forms app with Visual Studio 2012. I can add control to a from OK, but when I try start it in debugger an error pops up:
"An unhandled exception of type System.Runtime.InteropServices.COOMException. Additional information: Class not registered (Exception form HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG) )
Am I doing something wrong?
The installed samples run Ok and I see the control on forms OK
Thank You!
Oleg

AngelaI
Posts: 2
Joined: Tue Aug 13, 2013 1:38 am

Re: Exception on start of new application

Post by AngelaI »

Hi Oleg
You must be using 32 bit KernelCAD and the default Any CPU configuration?
You need to change in project properties, Build tab Platform Target to x86 instead of Any CPU.

Any CPU is supposed to determine platform at runtime, but because Kernelcad is a native component the platform has to be determined at build time

Regards
Angela

Post Reply