howto launch an executable from an aspx page

  • Thread starter Abraham Andres Luna
  • Start date
A

Abraham Andres Luna

hello everyone,
i am having a hard time launching an executable from an aspx page.
i have already setup impersonation in the web.config file like so:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<authorization>
<allow users="*" />
</authorization>
<identity impersonate="true" userName="DOMAIN/USERNAME"
password="PASSWORD" />
</system.web>
</configuration>

this is the page code:
Process.Start(@"C:\RDK\Software\RDK.Reports\bin\RDK.Reports.exe");

i can see RDK.Reports.exe show up in the process list, but then the JIT
debugger pops up
i also noticed that it doesn't seem to impersonate the user. it launches the
exe as the ASPNET account

thank you for your help,
abraham luna
 
A

Andrew Robinson

The process is starting up on your server not within the interactive session
launched by the browser. Likely you are running your sever (IIS or Webdev
(Cassini) on the same machine as your browser so you see the process, but it
is not running within your interactive session.

Lauching an executable directly from the browser is very difficult. Think of
all of the security issues that would come to light if you could do this?

Hope this is of some help
 
A

Abraham Andres Luna

you're right about the security issues.
maybe i'll just create a windows service and hope i can call that from
asp.net
ty
 

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

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top