Error while exporting PPT 2007 on Windows 2008 using ASP.NET
-
Hi, I have developed a web application which opens the PPT 2007 using asp.net 3.5. With Office 2003 on Windows XP it works fine, but when installed on Windows 2008 Server which has .Net3.5 and Office 2007 gives the following error: Error:
Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005.
StackTrace:
Server Error in '/VemoWeb' Application.
Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005.
Source Error: Line 141:Line 142: //init PowerPoint
Line 143: PowerPoint.Application powerPoint = new PowerPoint.Application();
Line 144: PowerPoint.Presentation ppt = powerPoint.Presentations.Add(MsoTriState.msoTrue);
Line 145:
Source File: c:\inetpub\wwwroot\VemoWeb\App_Code\PPTChart.cs Line: 143
Stack Trace:
[COMException (0x80080005): Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005.]
Dundas.Charting.Utilities.ChartPPTExport.CreatePPT(String chartImageFileName, String pptOutputFile) in c:\inetpub\wwwroot\VemoWeb\App_Code\PPTChart.cs:143
[ChartPPTExportException: ChartPPTExportException: Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005.]
Dundas.Charting.Utilities.ChartPPTExport.CreatePPT(String chartImageFileName, String pptOutputFile) in c:\inetpub\wwwroot\VemoWeb\App_Code\PPTChart.cs:208
UserControls_Export.imgPPT_Click(Object sender, ImageClickEventArgs e) in c:\inetpub\wwwroot\VemoWeb\UserControls\Export.ascx.cs:142
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEve -
Hi, I have developed a web application which opens the PPT 2007 using asp.net 3.5. With Office 2003 on Windows XP it works fine, but when installed on Windows 2008 Server which has .Net3.5 and Office 2007 gives the following error: Error:
Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005.
StackTrace:
Server Error in '/VemoWeb' Application.
Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005.
Source Error: Line 141:Line 142: //init PowerPoint
Line 143: PowerPoint.Application powerPoint = new PowerPoint.Application();
Line 144: PowerPoint.Presentation ppt = powerPoint.Presentations.Add(MsoTriState.msoTrue);
Line 145:
Source File: c:\inetpub\wwwroot\VemoWeb\App_Code\PPTChart.cs Line: 143
Stack Trace:
[COMException (0x80080005): Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005.]
Dundas.Charting.Utilities.ChartPPTExport.CreatePPT(String chartImageFileName, String pptOutputFile) in c:\inetpub\wwwroot\VemoWeb\App_Code\PPTChart.cs:143
[ChartPPTExportException: ChartPPTExportException: Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005.]
Dundas.Charting.Utilities.ChartPPTExport.CreatePPT(String chartImageFileName, String pptOutputFile) in c:\inetpub\wwwroot\VemoWeb\App_Code\PPTChart.cs:208
UserControls_Export.imgPPT_Click(Object sender, ImageClickEventArgs e) in c:\inetpub\wwwroot\VemoWeb\UserControls\Export.ascx.cs:142
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEveI'm going to hazard a guess that powerpoint is not installed on the server.
-
I'm going to hazard a guess that powerpoint is not installed on the server.
Hi Paddy, Thank you for your response. I just checked on the Server, but PowerPoint 2007 is installed there. Looks like something related to permissions, but I am not sure what the solution is.
----- Ajay Jadhav http://www.divinet.co.in