vb.net - System.Runtime.InteropServices.COMException once and again -
i don't know why / when happens, error message bugs me each year:
exception thrown: 'system.runtime.interopservices.comexception' in mscorlib.dll
additional information: com class factory component clsid {c70f08f3-3f2a-477d-9f7a-b5463e973bdc} couldn't access due following reason: 80040154 class not registered (exception of hresult: 0x80040154 (regdb_e_classnotreg)).
i don't remember how solve each time occurs. think recompile ocx component , add again.
however, strange because can use ocx component in vb6. why should not accessibly in .net then?
can explain might happening here?
thank you.
hard guess without supporting code in op, symptoms consistent ocx having changed clsid whatever reason (for example, due interface changes).
in case:
rebuilding ocx re-registers @ end, right class registered;
re-adding reference ocx updates referenced clsid correct one.
as why works in vb6, reference has somehow been updated already. how happened is, again, hard guess given lack of details.
Comments
Post a Comment