I have .net console application and com object I want to instantiate via:
var t = Type.GetTypeFromProgID("myProgID");
var o = Activator.CreateInstance(t);
everything works fine when client platform is .net framework 3.5, but crashes when I upgrade version number to 4.0 with
Retrieving the COM class factory for component with CLSID {xxx-xxx} failed due to the following error: 80004005 (E_FAIL)?
COM object is built with .Net Framework 3.5
What shall I do to make my Com object usable?
Thank you in advance!