Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

how to call a .exe from a asp.net Web application
chandan acharya
#1 Posted : Thursday, February 20, 2014 7:33:33 AM(UTC)
Groups: Member
Joined: 2/20/2014(UTC)
Posts: 1
Location: India

How can i invoke a .exe through a web Application?

I have used the below code to invoke a .exe through a web application,it worked fine in development mode but when i host the Web application it is not able to invoke the windows application.

code:

Process p = new Process();
p.StartInfo.FileName = @"C:\Windows\System32\calc.exe";
p.Start();


Please Help!!!
Ultidev Team
#2 Posted : Thursday, February 20, 2014 9:15:02 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

We are not sure what you are trying to accomplish, but please note that the process started like that would be running on a server (because you are starting it from server code) while your browser user is possibly on the other side of the world.

The reason why it worked in dev mode and not in registered app, is because non-interactive web server is a Windows service process, which has no UI and can run when no user is logged in to the machine. That's the reason you can't start an interactive program from a code executed from within a service.

If you are creating an application where your server and client are always on the same PC, then you should use UWS Interactive Host - the one used in dev, and then you would be able to start an interactive application, like calculator or media player.

Please also see this thread.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#3 Posted : Thursday, February 20, 2014 3:49:04 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Thanks for your reply.
We are having client-server architecture.There are two application one is Web application which one is to be hosted at the server and the other one Windows application is to be installed at the client system.

What i need is how i can invoke the windows application installed at client system through the web application(this is hosted at the server).

Ultidev Team
#4 Posted : Thursday, February 20, 2014 8:16:19 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

This is more of a general programming question, rather than UWS-specific one, that you will have better chance answered competently at StackOverflow.com. You would need to start a process on the client, and doing so in the server application does not help at all. On the client, i.e. in the browser, a media file, like sound or video, can be played on the page.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#5 Posted : Monday, August 25, 2014 9:37:58 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#6 Posted : Saturday, November 1, 2014 3:31:06 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#7 Posted : Thursday, November 6, 2014 12:12:53 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#8 Posted : Saturday, November 8, 2014 10:01:25 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#9 Posted : Saturday, November 8, 2014 5:29:54 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#10 Posted : Friday, November 21, 2014 6:50:24 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#11 Posted : Wednesday, December 31, 2014 6:11:54 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#12 Posted : Friday, January 2, 2015 4:14:56 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#13 Posted : Monday, March 9, 2015 8:03:08 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.