Solved

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

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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

691 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