Issues running excel in background with IIS 7.5

Posted on 2013-10-07
Medium Priority
Last Modified: 2013-10-24
We are upgrading from 2003 server to 2008 r2.  We have a web form in php, that hands data off to vb6 (via text file and execution) to insert data into a excel spreadsheet, and return data (via text file).  This works great in 2003 iis.  It works great if PHP is called from command prompt in 2008 r2.  Once IIS calls php, excel opens and is visiable in task manager, but just hangs.

I have slimmed my vb6 app down to just calling excel with a new file and it still hangs.  Figuring it in an environment issue within iis.  Any ideas on how to make IIS run more as if it was the desktop, similar to IIS in 2003?

Update:  I can start a new spreadsheet in excel and save it to any allowed directory, but cannot open that file in the next run/pass?
Question by:danwarelabs
1 Comment

Accepted Solution

danware earned 0 total points
ID: 39557399
Solved, in 2008 r2, the DCOM object of excel itself needs elevated permissions, regardless of the user/security of the program calling the dcom object in this situation.  Hope this helps anyone else in this boat.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
I recently worked on a Wordpress site that utilized the popular ContactForm7 (https://contactform7.com/) plug-in that only sends an email and does not save data. The client wanted the data saved to a custom CRM database. This is my solution.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question