execute exe from asp.net


G

Guest

Is it possible to call and execute an EXE file on a server from a asp.net web
form?
The exe file does some process like a batch file. I have a windows form that
calls it and executes it correctly but I need it to be a web form instead
 
Ad

Advertisements

G

Guest

I've llooked and tried the process.start(exe name) and nothing happened, my
page just hangs., I'll look at the link below to see if that can help me out.
 
G

Gabriel Magaña

Pay close attention to security, the ASPNET user does not have many rights
on the machine, which may be needed to start the child process...
 
G

Guest

I'm not a real big fan of tweaking the .NET security. Is there another way i
could do this or is this the only way? Also will this impact my other .net
applications running on the server?
 
Ad

Advertisements

L

Laurent Bugnion

Hi,
I'm not a real big fan of tweaking the .NET security. Is there another way i
could do this or is this the only way? Also will this impact my other .net
applications running on the server?

It's not a matter of tweaking .NET security. The issue is that the IIS
web server runs as a service, and thus doesn't have the same rights as
the logged-in user. You must modify the NTFS security settings (in
Windows, not .NET) so that the ASPNET user (on the local machine) has
the corresponding rights on the EXE file that you want to execute.

To modify these, use the Windows Explorer, right click on the EXE file,
choose properties and then the Security tab.

To add the ASPNET user, select "Add", then "Location", the name of your
PC (on top of the list), then Advanced and then "Find now". You should
see a user named ASPNET. This is the one. It must have Read&Execute
rights at least.

HTH,
Laurent
 
Ad

Advertisements


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

Top