locked
Powerpoint / Office Automation with ASP.NET on Windows Server 2012 RRS feed

  • Question

  • Our application has worked fine on Server 2003, 2008, and 2008R2. Once we moved to Server 2012, PowerPoint automation no longer works. We simply receive an error "Powerpoint could not open the file." 

    We've tried the myriad approaches with permissions, DCOMCFG, and more. We've tried different Office versions. Nothing works. PowerPoint will *not* open the file from an ASP.NET site nor a Windows service. It's almost like automation is disabled.

    Has anyone found similar issues with Windows Server 2012 and Office Automation? We can't simply roll back this client's app to an old server, or spin up a VM to run it.

    Any help would be greatly appreciated.

    Thanks!


    Check out "Fu" for Facebook uploading in Win8! | Author, Hacking the PSP & Geek My Ride | President, The Auri Group, LLC, www.aurigroup.com | Blog: http://auri.me

    • Moved by Bob Shen Tuesday, March 19, 2013 6:16 AM
    Sunday, March 17, 2013 4:55 PM

Answers

All replies

  • Not the answer you want ... but the world is a harsh place.

    Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

    For more details http://support.microsoft.com/kb/257757


    Paul Linton

    Monday, March 18, 2013 4:17 AM
  • Have you logged on to the server and used PowerPoint to open the file?  Does it work?

    Paul Linton

    Monday, March 18, 2013 4:23 AM
  • Yeah, I've seen this one. It's not a high volume use of Office - it's just to convert slides to JPEG and PNG. Only one admin does it once per day. It's worked for years. Server 2012's default configuration appears to have broken it. I don't know if there's something fundamentally different in 2012 that prevents this from working, and I just want to know. In the meantime we've bought the Aspose.Slides solution. $799, but what else can we do? Grr.

    Check out "Fu" for Facebook uploading in Win8! | Author, Hacking the PSP & Geek My Ride | President, The Auri Group, LLC, www.aurigroup.com | Blog: http://auri.me

    Monday, March 18, 2013 12:34 PM
  • Works fine opening it manually.

    Check out "Fu" for Facebook uploading in Win8! | Author, Hacking the PSP & Geek My Ride | President, The Auri Group, LLC, www.aurigroup.com | Blog: http://auri.me

    Monday, March 18, 2013 12:34 PM
  • Hi Auri,

    I’m afraid that it is not the correct forum about this issue, since this forum is to discuss Visual C#. I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks for your understanding.


    Bob Shen
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, March 19, 2013 6:16 AM
  • If further discussion is needed, I would suggest continuing in the Office for Developers forum:

    http://social.msdn.microsoft.com/Forums/en-US/category/officedev

    Regards,

    Zoli

    Tuesday, March 19, 2013 10:21 AM
  • I believe this is an issue with Server 2012, not Office Automation in general. It worked fine on every Windows Server release *except* 2012, so that is the answer we need. I've already reviewed all the articles, and I already Microsoft doesn't condone Office's use like this in any high volume way. However, this is a controlled case, and COM automation should work here. Something changed in Server 2012 that has caused this to break, and I want to know what - not "well, we never supported it in the first place", since, well, you did ;)


    Check out "Fu" for Facebook uploading in Win8! | Author, Hacking the PSP & Geek My Ride | President, The Auri Group, LLC, www.aurigroup.com | Blog: http://auri.me

    Wednesday, March 27, 2013 6:07 PM
  • For server 2012 you can ask them here.

    http://social.technet.microsoft.com/Forums/en-US/winserver8gen/threads

    for ASP.Net issues I'd ask them over here.

    http://forums.asp.net/

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Saturday, March 30, 2013 1:08 PM