473,788 Members | 2,787 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling a windows application

Anyone knows how to call a windows application inside ASP.Net code?

Regards,
Nov 19 '05 #1
8 2250
Miguel,

Do you mean on the server or the client machine? If you mean on the client
machine you'd have to have an active x control or it's like installed on the
client.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:Om******** ******@tk2msftn gp13.phx.gbl...
Anyone knows how to call a windows application inside ASP.Net code?

Regards,

Nov 19 '05 #2
Thank you Justin,

I am not sure which is better from server or from client. I tried the shell
command but runs the application in a background mode, I am not able to see
the application, only in the task manager where I need to close it.
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> escribió en el
mensaje news:eu******** ******@TK2MSFTN GP12.phx.gbl...
Miguel,

Do you mean on the server or the client machine? If you mean on the client
machine you'd have to have an active x control or it's like installed on
the client.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:Om******** ******@tk2msftn gp13.phx.gbl...
Anyone knows how to call a windows application inside ASP.Net code?

Regards,


Nov 19 '05 #3
If you want to launch a windows application on the server you can use

Diagnostics.Pro cess.Start( . . . . . .

--
Best Regards

The Inimitable Mr Newbie º¿º
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:OM******** ******@TK2MSFTN GP12.phx.gbl...
Thank you Justin,

I am not sure which is better from server or from client. I tried the
shell command but runs the application in a background mode, I am not able
to see the application, only in the task manager where I need to close it.
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> escribió en
el mensaje news:eu******** ******@TK2MSFTN GP12.phx.gbl...
Miguel,

Do you mean on the server or the client machine? If you mean on the
client machine you'd have to have an active x control or it's like
installed on the client.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:Om******** ******@tk2msftn gp13.phx.gbl...
Anyone knows how to call a windows application inside ASP.Net code?

Regards,



Nov 19 '05 #4
processes started from asp.net (or any service) will not have access to the
desktop, so they are not able to open a window, thus they are always a
background task.

-- bruce (sqlwork.com)


"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:OM******** ******@TK2MSFTN GP12.phx.gbl...
Thank you Justin,

I am not sure which is better from server or from client. I tried the
shell command but runs the application in a background mode, I am not able
to see the application, only in the task manager where I need to close it.
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> escribió en
el mensaje news:eu******** ******@TK2MSFTN GP12.phx.gbl...
Miguel,

Do you mean on the server or the client machine? If you mean on the
client machine you'd have to have an active x control or it's like
installed on the client.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:Om******** ******@tk2msftn gp13.phx.gbl...
Anyone knows how to call a windows application inside ASP.Net code?

Regards,



Nov 19 '05 #5
Thanks Mr. Newbie,

It works but the application is not visible.
How can I make it visible?

Regards,

"Mr Newbie" <he**@now.com > escribió en el mensaje
news:Ol******** ******@TK2MSFTN GP15.phx.gbl...
If you want to launch a windows application on the server you can use

Diagnostics.Pro cess.Start( . . . . . .

--
Best Regards

The Inimitable Mr Newbie º¿º
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:OM******** ******@TK2MSFTN GP12.phx.gbl...
Thank you Justin,

I am not sure which is better from server or from client. I tried the
shell command but runs the application in a background mode, I am not
able to see the application, only in the task manager where I need to
close it.
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> escribió en
el mensaje news:eu******** ******@TK2MSFTN GP12.phx.gbl...
Miguel,

Do you mean on the server or the client machine? If you mean on the
client machine you'd have to have an active x control or it's like
installed on the client.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:Om******** ******@tk2msftn gp13.phx.gbl...
Anyone knows how to call a windows application inside ASP.Net code?

Regards,



Nov 19 '05 #6
Thanks Bruce,

This is not good news,
Anyway I can make it visible?

"Bruce Barker" <br************ ******@safeco.c om> escribió en el mensaje
news:uL******** ******@TK2MSFTN GP09.phx.gbl...
processes started from asp.net (or any service) will not have access to
the desktop, so they are not able to open a window, thus they are always a
background task.

-- bruce (sqlwork.com)


"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:OM******** ******@TK2MSFTN GP12.phx.gbl...
Thank you Justin,

I am not sure which is better from server or from client. I tried the
shell command but runs the application in a background mode, I am not
able to see the application, only in the task manager where I need to
close it.
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> escribió en
el mensaje news:eu******** ******@TK2MSFTN GP12.phx.gbl...
Miguel,

Do you mean on the server or the client machine? If you mean on the
client machine you'd have to have an active x control or it's like
installed on the client.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:Om******** ******@tk2msftn gp13.phx.gbl...
Anyone knows how to call a windows application inside ASP.Net code?

Regards,



Nov 19 '05 #7
You *can* make it visible...but only on the server.

The client will never be able to see it.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Thanks Bruce,

This is not good news,
Anyway I can make it visible?

"Bruce Barker" <br************ ******@safeco.c om> escribió en el mensaje
news:uL******** ******@TK2MSFTN GP09.phx.gbl...
processes started from asp.net (or any service) will not have access to the desktop, so
they are not able to open a window, thus they are always a background task.

-- bruce (sqlwork.com)


"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:OM******** ******@TK2MSFTN GP12.phx.gbl...
Thank you Justin,

I am not sure which is better from server or from client. I tried the shell command
but runs the application in a background mode, I am not able to see the application,
only in the task manager where I need to close it.
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> escribió en el mensaje
news:eu******** ******@TK2MSFTN GP12.phx.gbl...
Miguel,

Do you mean on the server or the client machine? If you mean on the client machine
you'd have to have an active x control or it's like installed on the client.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:Om******** ******@tk2msftn gp13.phx.gbl...
> Anyone knows how to call a windows application inside ASP.Net code?
>
> Regards,
>



Nov 19 '05 #8
yes. write a new windows service that runs as the local system account, and
in the settings for the service, allow interaction with the desktop. have
the service use .net remoting to listen for a start program request. have
your asp page call the service to do the startup.

note: as the webservice and service run even when noone is logged on the
webserver, they can not create a desktop in this case. you must be sure
someone has logged on the webserver for the window to appear.

-- bruce (sqlwork.com)

"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Thanks Bruce,

This is not good news,
Anyway I can make it visible?

"Bruce Barker" <br************ ******@safeco.c om> escribió en el mensaje
news:uL******** ******@TK2MSFTN GP09.phx.gbl...
processes started from asp.net (or any service) will not have access to
the desktop, so they are not able to open a window, thus they are always
a background task.

-- bruce (sqlwork.com)


"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:OM******** ******@TK2MSFTN GP12.phx.gbl...
Thank you Justin,

I am not sure which is better from server or from client. I tried the
shell command but runs the application in a background mode, I am not
able to see the application, only in the task manager where I need to
close it.
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> escribió
en el mensaje news:eu******** ******@TK2MSFTN GP12.phx.gbl...
Miguel,

Do you mean on the server or the client machine? If you mean on the
client machine you'd have to have an active x control or it's like
installed on the client.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Miguel Ramirez" <mi************ @emersonclimate .com> wrote in message
news:Om******** ******@tk2msftn gp13.phx.gbl...
> Anyone knows how to call a windows application inside ASP.Net code?
>
> Regards,
>



Nov 19 '05 #9

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

Similar topics

3
19179
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application Event log. My environment: Windows Server 2003, IIS 6, WSH, Classic ASP, Vbscript Below is the code and the error: Code:
2
9783
by: Tony Liu | last post by:
Hi, I want to get the name of the calling function of an executing function, I use the StackTrace class to do this and it seems working. However, does anyone think that there any side effect towards this approach such as how would it works in multi-thread. Thanks Tony
3
1956
by: Martin Knopp | last post by:
Anybody here can shed some light on this issue? Is it at all possible to call out-of-proc COM objects from ASP.NET? If yes, what configuration settings are required? I played around many hours already trying to get all security settings done (as I did not find specific informations I followed the general rules for getting ASP to work with out-of-proc COM objects).
5
3437
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 5), but fails on IIS 6 running on a Win2003 server. The web uses Pages derived from a custom class I wrote (which itself derives from Page) to provide some common functionality. The Page_Load handler the failing webpage starts out like this: ...
6
1709
by: Amjad | last post by:
Hi, I want to make a project that calls and executes a function (VB code) made in a seperate file in the Application Folder. I know I can create the function in my project and call it internally, but I want to put the function's code in an external file, so that future updates to the function will require a replacing the function file instead of re-installing the whole project. Can you give me ideas on how I can make small updates to my...
3
9104
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. If the web service is taking a long time to complete, the aspx page returns a ‘The operation has timed-out.’ Message to the web browser after 100 seconds. I’ve added: <httpRuntime executionTimeout="300" /> to the web.config files
5
2601
by: joeblast | last post by:
I have a Web service that gets the financial periods and hold a reference to a disconnected dataset built at initialization. Web methods work on the dataset inside the web service. Everything is fine so far. My problem is that when I call a web method to modify the dataset inside the Web service it is never updated and I get no errors. currentPeriods method will always give me 1 even if I call ChangeDataset and call currentPeriods...
1
2259
by: Arne Adams | last post by:
Hi, I try to use a C# Dialog in a legacy MFC application. The problem seems to boil down to the following: from an unmanaged console application I can call any function of the managed bridge - if I try to do the same from my mfc application the application won't start 'SeaMain.exe': 'E:\WINDOWS\system32\mscoree.dll' geladen, Keine Symbole geladen. 'SeaMain.exe': 'E:\WINDOWS\system32\msvcr71d.dll' geladen, Symbole geladen.
12
3489
by: tom_kuehnert | last post by:
Hi! I'm trying to execute a program using system(). The program itself is located in some path which might contain whitespaces. Simple solution would be this: system("\"C:\A B\C.exe\""); but now this program also has parameters which need to be passed (again with paths containing whitepaces)
0
3229
by: pinky22 | last post by:
I am calling SSIS package from a .Net windows UI. Both SSIS & .Net app are created in 2008. The SSIS package is stored in file system. When I ran .Net app I got error- The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10366
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9967
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.