Hi Everyone,
I am stuck to access file properties using 'Interop.dsofil e.dll'. I dont want registration of this assembly in system registry. I am using reflection to achive this, but at the time of create instance (Activator.Crea teInstance) of 'dsofile.OleDoc umentProperties Class' it throw the following registry exception:
"Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154."
Please help me, how i access file property using dsofile w/o registration in registry. Below are the code that i using, bold line is the cause of above exception:
Assembly dsoFile = Assembly.LoadFi le(baseDirector y + "Interop.DSOFil e.dll");
Type OleDocumentProp ertiesClassType = dsoFile.GetType ("DSOFile.OleDo cumentPropertie sClass");
object OleDocumentProp ertiesClassInst ance = Activator.Creat eInstance(OleDo cumentPropertie sClassType);
MethodInfo OleDocOpenMetho d = OleDocumentProp ertiesClassType .GetMethod("Ope n");
Cheers,
Sanjay
I am stuck to access file properties using 'Interop.dsofil e.dll'. I dont want registration of this assembly in system registry. I am using reflection to achive this, but at the time of create instance (Activator.Crea teInstance) of 'dsofile.OleDoc umentProperties Class' it throw the following registry exception:
"Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154."
Please help me, how i access file property using dsofile w/o registration in registry. Below are the code that i using, bold line is the cause of above exception:
Assembly dsoFile = Assembly.LoadFi le(baseDirector y + "Interop.DSOFil e.dll");
Type OleDocumentProp ertiesClassType = dsoFile.GetType ("DSOFile.OleDo cumentPropertie sClass");
object OleDocumentProp ertiesClassInst ance = Activator.Creat eInstance(OleDo cumentPropertie sClassType);
MethodInfo OleDocOpenMetho d = OleDocumentProp ertiesClassType .GetMethod("Ope n");
Cheers,
Sanjay
Comment