Retrieving the COM class factory for component with CLSID 91493441-5A91-11CF-8700-00AA0060263B failed due to the following error

Last Reply on Jan 17, 2014 07:46 AM By Mudassar

Posted on Jan 16, 2014 05:53 AM
I am using below code to find find no of slides in .ppt,.pptx and .pot file .
 
Microsoft.Office.Interop.PowerPoint.Application pptApplication = new Microsoft.Office.Interop.PowerPoint.Application();
        Microsoft.Office.Interop.PowerPoint.Presentation  pptPresentation = pptApplication.Presentations.Open(path, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
        count=pptPresentation.Slides.Count;
It is working file in my system , but online it is showing error : 
Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Posted on Jan 17, 2014 07:46 AM Modified on on Jan 21, 2014 05:53 AM

You need to install Interop runtime on server

http://msdn.microsoft.com/en-us/library/kh3965hw.aspx

But since it is shared hosting,

you will need to contact your hosting company on this