I have to use an ocx in an WPF application. If i make a new project under the .net framework 4.5 It works perfectly.

But if i try to make an application in any other .net framework VisualStudio gives the error "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))" I tried to fix it with regsvr32 but it still doens't work.

How do i fix this so i can make an .net 4.0 application?

有帮助吗?

解决方案

Ok i fixed the problem the only thing i had to do was change the debug/release mode to x86.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top