473,414 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

howto launch an executable from an aspx page

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\RD K.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
Feb 17 '06 #1
2 1636
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

--

Andrew Robinson
http://blog.binaryocean.com
"Abraham Andres Luna" <ab*@rdk.com> wrote in message
news:ed**************@tk2msftngp13.phx.gbl...
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\RD K.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

Feb 17 '06 #2
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
Feb 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Caroline | last post by:
I'd like to launch an executable file from a web page. Basically, the user enters seven parameters and then clicks a button to generate a graph. The input is written to a file and then read by...
4
by: Eric | last post by:
Hello, I need to allow a web page to launch an interactive program on the web server. For this example, I'd like to have the ASP.NET open notepad on the asp server, so the current logged-in...
5
by: Paul | last post by:
Hi, I have a console app which is simply called from another app which passes a filename to it for processing. It does not display anything or require any input. All errors are sent to the...
3
by: Scott | last post by:
I wish to have a link on a page that launches a new browser before it loads the target link. The standard _new and _blank include the parent browser's cookies. Is there an alternative method that...
7
by: dinamointer | last post by:
Could you help me in this problem: I want to launch an exe file(executable jar file) from a web page. I use jsp...and i cannot use vbScript...? could u tell me how should i do it? Thanks
3
by: sympatique | last post by:
I build a web page with Asp.Net. I reserve a Domain name and host space from a professionnal Hosting. They told me to use the file Index.html to launch my .aspx page..... HOW CAN i DO THIS. do...
1
by: # Cyrille37 # | last post by:
Hello, I'm trying to add a resource to an existing assembly, but I failed. I've only nearly found how to create a new assembly, but not change a existing one. I would like to write a little C#...
2
by: dmitrey | last post by:
Hi all, here is a question already mentioned below, and I'm also interested in that one very much. unfortunatly, I can't write anything to matplotlib mailing lists because I constantly get server...
6
by: tempnode | last post by:
I have a problem that I can't seem to solve: I need to write a C++ app that will run off of a floppy. Basically, I will boot into DOS (from a floppy), and run my executable from the floppy. ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.