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

Browser to destkop app - suggestions

Note: Not strictly tied to C#; so an answer of "repost to <x>" would be more
than adequate - however, I value the opinions of people on this group, and I
am sure that somebody here has had to do this before.

I have two disparate systems (one a browser-app, one a C# .Net2 smart-client
deployed with click-once (online-only)) which I need to tie together; my
requirement is to be able to send simple messages from the browser client to
the desktop client running on the current machine; a nice-to-have is to be
able to obtain feedback from the messages.

To do this, I looked at a few options:
* href-ing to a second click-once application with params on the
query-string, and getting the invoked exe to use remoting to talk to the
instance of the application (already running exactly once)
* making the desktop app start an HttpListener thread, listening to a port
on 127.0.0.1 (or localhost), and sending messages as GETs or POSTs to that
address either via HREF or using XMLHTTP

I favor the latter, as it seems quicker (no fusion, remoting, etc) and
simpler, and I can (is using XMLHTTP) parse the HTTP response to satisfy my
feedback requirement, but when I try use XMLHTTP I get cross-domain data
warnings (fair enough with 20:20 hindsight ; it was stupid of me to do my
original proof-of-concept with the web-site also on localhost). However, the
other (major) advantage of XMLHTTP (rather than just HREFing) is that I can
catch the error if the desktop app isn't running, and prompt the user to
start it (instead of seeing a "server not found" IE message). Also, I can
send simple HTTP messages from pretty much *any* other client, without
needing .Net etc (I still have to support some 16-bit gupta apps..
shudder...)

So:

Does anyone know of a better way to do this? Ideally using "pure" .NET and
C#, i.e. I don't want to register a control on the client, as this violates
my click-once deployment (online-only), as I need the app to run on heavily
locked down machines by restricted user accounts. Also : I don't want to
disable IE's cross-domain warning, and I don't want to have to trust the
domain... It must run under the standard internet (not intranet, as I also
need it to work on an extranet) security level without hacks. You see the
problem...

Or am I just overlooking a simple solution to this problem?

Any ideas?

Marc

Jan 5 '06 #1
0 959

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

Similar topics

17
by: lawrence | last post by:
How is it possible that the question "How do I detect which browser the user has" is missing from this FAQ: http://www.faqts.com/knowledge_base/index.phtml/fid/125 and is only here on this...
9
by: hzgt9b | last post by:
I am using a web browser control to display some PPT slides saved as HTML. My client has recently asked that the background of the browser be changed to sonething other than white so that the...
1
by: Novice | last post by:
Hey all, I'm trying to write a proxy server so that I can capture all data sent from my web browser to any web server and then capture the response from the server and send that back to the...
10
by: A.M | last post by:
Hi, I require to have a button on the weinforms pages such that upon user click on the button, the event handler pops up another browser window to another url and current browser screen remains...
5
by: jfinnell | last post by:
Hi I'm working with the beta version of this product. I place the web in my master page, then link to my other pages. Set them up. When I select view in browser to check what I have done...
6
by: hemant.singh | last post by:
Hi all, I am trying to get a way by which I'll know exactly when user goes out of my site by clicking on close button in browser, So that w/e user click close button in browser, I can send a...
8
by: Christine Forber | last post by:
I have created a form that incorporates AJAX to provide suggestions from the database contents for the given field. The problem is that many browsers do their own "suggestions" based on previous...
3
by: TS | last post by:
I am using IE 7. I have a website running on my local machine (localhost) and auto complete doesnt work for any of the textboxes, but going to web sites on the internet does support this so i know...
10
by: Conrad Lender | last post by:
In a recent thread in this group, I said that in some cases object detection and feature tests weren't sufficient in the development of cross-browser applications, and that there were situations...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.