Deep.Timon
Deep.Timon

Reputation: 221

C# process.start not working on iis

I'm trying to run an exe with parameters from a web application.

I'm using Process.start() but it does not seem to run on iis!

It works fine when running from iis express. I'm publishing the application to my local iis as a test but it does nothing.

I've tried setting the iis admin service to enable interactions with the desktop and ive told iis to connect as my user credentials and set the application pool to use the same user credentials but still nothing works!

is there anything else someone can advise to get this working!

Cheers.

UPDATE

I got iis to run the process by setting the application pool identity to local system and double checking the credentials for the site.

But as expected the applications do not interact with the desktop, so creating a file from command line is simple, but running an application with parameters do not have the application open.

At the moment iis admin service has interact with desktop checked and is using the local system account.

Upvotes: 0

Views: 2088

Answers (1)

Deep.Timon
Deep.Timon

Reputation: 221

Ok so this isn't really an answer but in the end I got process.start to work by setting the application pool identity to local system.

But as expected the commands do not interact with the desktop, but this was enough for what my application needs to do.

Sorry for the poor answer.

Upvotes: 0

Related Questions