Solved

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

Posted on 2010-09-20
4
514 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
  • 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now