Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

COMException (0x80004005): PowerPoint could not open the file on IIS7 server

$
0
0
<div>I created a web application and trying to open/read power point presentation using c#, 64 bit Os,  windows 7, IIS 7, .NET Framewor 4, Office 2010. When I run the application within .NET IDE it reads the ppt file and works as expected, but when I deployed this application on IIS on the same machine it gives COMException (0x80004005): PowerPoint could not open the file</div> <div>

Part of the code is as follows:

<div>objApp = new Microsoft.Office.Interop.PowerPoint.Application();</div> <div>objApp.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;</div> <div>objPresSet = objApp.Presentations;</div> <div>objPres = objPresSet.Open(strTemplate, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoTrue);</div> </div>

Viewing all articles
Browse latest Browse all 1881

Trending Articles