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"
posted @ 2014-07-22 09:39  xiaoyinxxy  阅读(558)  评论(0编辑  收藏  举报