PC Review


Reply
Thread Tools Rate Thread

Calling local application from web app

 
 
Durango2008
Guest
Posts: n/a
 
      11th Feb 2009
Hello all,
I'm a bit of a newbie to this but I was wondering if I can call a local app.
via a web application. A friend suggested looking into ActiveX controls,
but I am not familiar with them. Also what other alternatives are there
beside using ActiveX? I read about using Flex and Applets but again I don't
know which would be my best option and what kind of security issues I may be
dealing with? If anyone can inform me or suggest a reference or book I
would appreciate it.
I would like to add I am working in a .Net 2.0 environment using VS2005 and
C# to build web forms.

Thanks for any information on this.
Durango.


 
Reply With Quote
 
 
 
 
Peter Morris
Guest
Posts: n/a
 
      11th Feb 2009
To do this the client would need to be listening on a port or something. In
my opinion it's not good practise. If your client can't reach your server
then the user can't use the app, by doing this you introduce the additional
problem that if the server can't reach the client then the app will only
work partially. It's very common in work environments that an Internet
server cannot reach the client because the client is likely to be behind
firewalls etc.

You should consider a different approach, such as

01: Client posts request
02: Server returns a job number
03: Client occasionally polls the server with the job number to check
progress



--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com - Think domain, not database

 
Reply With Quote
 
Pavel Minaev
Guest
Posts: n/a
 
      11th Feb 2009
On Feb 10, 11:08*pm, "Durango2008" <el_dura...@yah00.c0m> wrote:
> Hello all,
> I'm a bit of a newbie to this but I was wondering if I can call a local app.
> via a web application. *A friend suggested looking into ActiveX controls,
> but I am not familiar with them. *Also what other alternatives are there
> beside using ActiveX? I read about using Flex and Applets but again I don't
> know which would be my best option and what kind of security issues I maybe
> dealing with? *If anyone can inform me or suggest a reference or book I
> would appreciate it.


What do you mean by "web application calling a local application",
even? Do you mean accessing client environment from within the HTML
page when it's rendered on the client? Or do you mean calling local
apps installed on the server on which your Web application is
deployed?

Since you mention ActiveX, I think it's the former. In which case
that's really the only alternative (and it is precisely because
ActiveX allows for such dangerous things, it is widely frowned upon).
You can also host a Windows Forms control in a browser.

Anyway, any more specific advice would depend on what _exactly_ you
are trying to do.
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      23rd Feb 2009
Durango2008 wrote:
> I'm a bit of a newbie to this but I was wondering if I can call a local app.
> via a web application. A friend suggested looking into ActiveX controls,
> but I am not familiar with them. Also what other alternatives are there
> beside using ActiveX? I read about using Flex and Applets but again I don't
> know which would be my best option and what kind of security issues I may be
> dealing with? If anyone can inform me or suggest a reference or book I
> would appreciate it.
> I would like to add I am working in a .Net 2.0 environment using VS2005 and
> C# to build web forms.


You want the web app to update the client ("push") ?

Options are:
1) emulate push via poll (some AJAX style JavaScript can be pretty good
for that purpose)
2) true push via a socket connection

#2 requires something like Java Applet, Flex or a custom ActiveX.

I would suggest one of the two first because (hopefully) no one
will install an ActiveX from an unknown source.

If client establishes connection you will need to have the ability
to run a real server (besides IIS and ASP.NET).

If server established connection, then it will not work with
client firewalls.

My recommendation would be to poll via JavaScript - it is by far the
most safe way.

(it does not scale that well, but my assumption is that you are
not coding for 10000 concurrent users)

Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling local application from web app Durango2008 Microsoft ASP .NET 3 23rd Feb 2009 01:00 AM
Calling local application from web app Durango2008 Microsoft C# .NET 3 23rd Feb 2009 01:00 AM
Add domain user to local group via web application running under local admin account Chad Dressler Microsoft ASP .NET 0 30th Dec 2006 01:27 AM
Calling a local .NET UserControl from a local HTML page =?Utf-8?B?RGF2ZSBNY0NyYWNrZW4=?= Microsoft Dot NET 1 13th May 2005 04:35 PM
Calling a Local Application from ASP.net? =?Utf-8?B?TVNVVGVjaA==?= Microsoft Dot NET 1 1st Feb 2005 05:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:19 PM.