Solved

"Access is Denied"  when trying to run process using New Process() and ProcessStartInfo()

Posted on 2010-09-20
4
518 Views
Last Modified: 2012-05-10
I have 2 exe's that get called and run programmatically from my .NET web services.  They are both pretty simple.  I was not at my company when the application was original migrated to production so I don't know if any special configuration settings were made, but I can tell you that the app works fine on Win2003.  When I move it to our new Win2008 server, it fails to run the exe and I get an error message:

Access is Denied

I've tried EVERYTHING.  I've passed credentials with the ProcessStartInfo object, I've set security permissions on the exe to allow everyone, I've allowed scripts and executables in the IIS website.  I've literally tried everything I can think of.

Anyone have any ideas?
0
Comment
Question by:davidcahan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 33723198
did u set permission on the folder where the exe resides?
0
 

Author Comment

by:davidcahan
ID: 33726734
yes
0
 
LVL 33

Expert Comment

by:raterus
ID: 33792771
are the exe's located on the same server, or are you trying to run them over the network?
0
 

Accepted Solution

by:
davidcahan earned 0 total points
ID: 33906989
figured it out myself.  file that was being processed via the EXE was in the TEMP directory in the windows/system32 folder.  set permissions on that folder and then everything worked correctly
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

726 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