473,395 Members | 1,412 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,395 software developers and data experts.

calling .exe from asp.net c#

Hi all,
I'm using visual web developer to develop my asp.net applications. The
requirement is to call an executable file from one of the aspx pages on
the click event of a button.
The good news is that I've achieved it using the process class
function and it runs fine when I start debugging from the Visual web
developer environment.
Here comes the bad news. When I deploy this page on localhost and
click on the button, the desired process starts < I can say this
because it's there in the task manager's process tab > but the console
application <window> is not displayed. < Also the application tab of
the task manager doesn't have this exe file shown >

My observation:
When I run the page with Visual Web Developer environment, the invoked
application runs with my user-name against it. But when I run the page
after deploying at the local-host, it runs with ASPNET user-name
against it.

My tries:
I tried to load window's user profile and tried to run it... It loaded
the process with my user-name alright, but it abruptly ended with a
0x00000142 error < I aint sure about the number of 0s it has :) > I
looked up in Google and found that this error has to do something with
user.dll

Please Help :( :
Now you know what kind of mess I'm in, please try and help me get out
of this.

Jun 5 '06 #1
1 1679
This is simply not possible, due to the security aspects of every browser
made. You can run some ActiveX controls on the client browser (if you're
lucky and the user allows it). You can run a Flash swf on the client browser
(usually, unless the user doesn't allow it). But you *can't* run an
executable program from the client browser. Period.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Development Numbskull

Nyuck nyuck nyuck
<vi***********@gmail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Hi all,
I'm using visual web developer to develop my asp.net applications. The
requirement is to call an executable file from one of the aspx pages on
the click event of a button.
The good news is that I've achieved it using the process class
function and it runs fine when I start debugging from the Visual web
developer environment.
Here comes the bad news. When I deploy this page on localhost and
click on the button, the desired process starts < I can say this
because it's there in the task manager's process tab > but the console
application <window> is not displayed. < Also the application tab of
the task manager doesn't have this exe file shown >

My observation:
When I run the page with Visual Web Developer environment, the invoked
application runs with my user-name against it. But when I run the page
after deploying at the local-host, it runs with ASPNET user-name
against it.

My tries:
I tried to load window's user profile and tried to run it... It loaded
the process with my user-name alright, but it abruptly ended with a
0x00000142 error < I aint sure about the number of 0s it has :) > I
looked up in Google and found that this error has to do something with
user.dll

Please Help :( :
Now you know what kind of mess I'm in, please try and help me get out
of this.

Jun 5 '06 #2

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

Similar topics

1
by: Asapi | last post by:
1. Are linkage convention and calling convention referring to the same thing? 2. Does calling convention differ between languages C and C++? 3. How does calling convention differ between...
8
by: Muthu | last post by:
I've read calling conventions to be the order(reverse or forward) in which the parameters are being read & understood by compilers. For ex. the following function. int Add(int p1, int p2, int...
7
by: Klaus Friese | last post by:
Hi, i'm currently working on a plugin for Adobe InDesign and i have some problems with that. I'm not really a c++ guru, maybe somebody here has an idea how to solve this. The plugin is...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
2
by: Geler | last post by:
A theoretical question: Sorry if its a beginner question. Here is a quote from the MSDN explaning the C/C++ calling convention.. It demonstrates that the calling function is responsible to clean...
47
by: teju | last post by:
hi, i am trying 2 merge 2 projects into one project.One project is using c language and the other one is using c++ code. both are working very fine independently.But now i need to merge both...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
10
by: sulekhasweety | last post by:
Hi, the following is the definition for calling convention ,which I have seen in a text book, can anyone give a more detailed explanation in terms of ANSI - C "the requirements that a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.