Run EXE from ASP.Net

  • Thread starter Thread starter Jason MacKenzie
  • Start date Start date
J

Jason MacKenzie

I have a 3rd party application that I'd like to run from an asp.net page.
I've tried running it from the shell command and as a new process. They just
hang - the process starts but then nothig happens. The application has a
GUI that displays briefly - could this be what's causing it to hang? I'm
impersonating myself (with admin rights) so I doubt it's a permissions
thing - plus I've given the aspnet account full rights to the folder where
the app resides

This app creates a sheduled task when you install it. Is there anyway I can
trigger this scheduled task to run from .Net?

Thanks,

Jason MacKenzie
 
I should mention that everything works fine if I call it from a windows app
 
System.Diagnostics.Process should work for command line apps.
Apps that display UI will generally not work, because ASP.NET does not have
a desktop to run under.

To give it access to a desktop, thereby allowing most apps to run, try this:
Go into control panel, administrative tools, services.
Find all the WWW related services and, in their properties, check the
checkbox that says "Allow Service to Interact with Desktop"

Also, make sure the ASPNET user account has the necessary permissions to the
program's folder and any other folders that that program uses.
 
Actually, this software is an evaluation copy that you actually have to hit
an Evaluate button so I'm reasonably sure that's where it's stopping.

Thanks for the response.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top