首页 > 代码库 > Error -- Class not registered

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 : 

  1. register the COM component , e.g. Regsvr32 C:\Windows\SysWOW64\MSWinsck.OCX
  2. set the platform to x86, please do not set it as "Any CPU"