Error -- Class not registered
Error : An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Solution :
- register the COM component , e.g. Regsvr32 C:\Windows\SysWOW64\MSWinsck.OCX
- set the platform to x86, please do not set it as "Any CPU"