Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>First of all, what you are trying to achieve seems to be unsupported / not recommended by Microsoft:</p> <blockquote> <p>All current versions of Microsoft Office were designed, tested, and configured to run as end-user products on a client workstation. They assume an interactive desktop and user profile. <em>They do not provide the level of reentrancy or security that is necessary to meet the needs of server-side components that are designed to run unattended.</em></p> <p>Microsoft <strong>does not currently recommend</strong>, and <strong>does not support</strong>, Automation of Microsoft Office applications from <em>any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services)</em>, because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.</p> <p><em>If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution.</em> Or, you should try to <strong>find alternatives that allow at least part of the code to run client-side</strong>. If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.</p> </blockquote> <p>Source: <a href="http://support.microsoft.com/kb/257757" rel="nofollow noreferrer">http://support.microsoft.com/kb/257757</a></p> <p>With that said, it seems that a couple of other people have experienced a similar behavior under these settings, so I suggest you take a look at:</p> <ul> <li><a href="https://stackoverflow.com/questions/2081540/powerpoint-could-not-open-file">Powerpoint could not open file</a></li> <li><a href="https://stackoverflow.com/questions/729609/powerpoint-interop-fails-in-a-windows-service-but-works-fine-in-a-windows-form-a">Powerpoint Interop fails in a Windows Service but works fine in a Windows Form application</a></li> <li><a href="https://stackoverflow.com/questions/1006923/automating-office-via-windows-service-on-server-2008">Automating Office via Windows Service on Server 2008</a></li> </ul> <p>And further, to check that you open the <code>.pptx</code> right, I just tried the PowerPoint Interop bits of your code sample in a C# .NET 4.5 console application using PowerPoint Interop v. 15 (for Office 2013) on a standard desktop PC. And that works out of the box.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload