Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 535
  • Last Modified:

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

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
davidcahan
Asked:
davidcahan
  • 2
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
did u set permission on the folder where the exe resides?
0
 
davidcahanAuthor Commented:
yes
0
 
raterusCommented:
are the exe's located on the same server, or are you trying to run them over the network?
0
 
davidcahanAuthor Commented:
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
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

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now