Solved

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

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

778 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