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

Sending mesages between C# apps

I've a c# app that I execute on a remote machine, which works as I expect it
to, but when that apps throws an exception on the remote machine how do I
know what's
going on, since it's a remote app?

For instance on the remote app that I execute I check for the existence of a
file, and if it's not there,I want to display a simple popup message telling
the user that the file doesn't exist on that machine and then I quit the
app. How do I send a message, back to the user that started the remote app?

Any ideas, or examples?
Nov 27 '06 #1
5 1295
You need to check out .net 'remoting'

Jason wrote:
I've a c# app that I execute on a remote machine, which works as I expect it
to, but when that apps throws an exception on the remote machine how do I
know what's
going on, since it's a remote app?

For instance on the remote app that I execute I check for the existence of a
file, and if it's not there,I want to display a simple popup message telling
the user that the file doesn't exist on that machine and then I quit the
app. How do I send a message, back to the user that started the remote app?

Any ideas, or examples?
Nov 27 '06 #2
Look at WCF.

Its part of .NET Framework 3.

Just google in, or live it.

Steve

http://stevesdotnetblog.spaces.live.com/
"Jason" <so*****@microsoft.comwrote in message
news:O8**************@TK2MSFTNGP02.phx.gbl...
I've a c# app that I execute on a remote machine, which works as I expect
it
to, but when that apps throws an exception on the remote machine how do I
know what's
going on, since it's a remote app?

For instance on the remote app that I execute I check for the existence of
a
file, and if it's not there,I want to display a simple popup message
telling
the user that the file doesn't exist on that machine and then I quit the
app. How do I send a message, back to the user that started the remote
app?

Any ideas, or examples?

Nov 27 '06 #3
ga********@myway.com wrote:
You need to check out .net 'remoting'
And allow remote debugging via attaching to the remote process [like dllhost
or svchost or whatever it happens to be].

--
Thomas T. Veldhouse
Key Fingerprint: D281 77A5 63EE 82C5 5E68 00E4 7868 0ADC 4EFB 39F0
Nov 27 '06 #4
V
On 27 Nov 2006 08:11:13 -0800, ga********@myway.com wrote:
>You need to check out .net 'remoting'
I'm not the O.P., but I have a related question: What is the usual way
of communicating between a C# app and an unmanaged C++ app?
Both apps running on the same machine.

Seems that you could get windows handles, use the clipboard (?), or
maybe even sockets. But I was wondering if there is anything more
elegant or direct.

What are others doing to solve this?
Nov 28 '06 #5
V <V@_____.___wrote:
>I'm not the O.P., but I have a related question: What is the usual way
of communicating between a C# app and an unmanaged C++ app?
Both apps running on the same machine.
Seems that you could get windows handles, use the clipboard (?), or
maybe even sockets. But I was wondering if there is anything more
elegant or direct.
What are others doing to solve this?
Or pipes, windows messages, disk files. I also like sending XML over
TCP, even on the same machine.

But really, if the communication is more than can be handled by just a
simple pipe (e.g. "process1 process2" at the command-line) then I'm
quite suspicious of it. Good candidates for merging the two apps into
a single combined C#+CLI app. I mean, we spend so much effort
(pickling, RPC, proxies) to make it look as though two remote apps are
really part of the same single app, that's if we have the chance to
make two apps *really* part of the same single app then we should use
it!

--
Lucian
Nov 28 '06 #6

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

Similar topics

1
by: Drew | last post by:
I have worked with CDO mail before at a different job, but at that job I was developing internet sites, and now I am developing Intranet apps. We have the following setup, WWW/SQL on 1 server,...
2
by: chrisben | last post by:
Hi All Has anyone done any experiment on comparison between C++ and C# on socket rec/send speed Conditions in Windows system, same CPU for senders or receivers. Can you see how much faster a...
10
by: zurg | last post by:
Hi! I tried to send a simple message to a running window and it doesn't work. Why??? When I used EndTask function it worked so the handle to a window is right... Mayby the number of message is...
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
7
by: John Bailo | last post by:
I wrote a c# web service that sends an XmlDocument as a return type. When I run it on a w2k iis machine, it takes 35s to 45s to send the data to a client (I wrote a smart client c# app to consume...
3
by: Daniel Clark | last post by:
I have a Windows command line based application that only shuts down cleanly if it sees "CTRL-C" on the console. I need to automate the running of this application, but still allow the user sitting...
1
by: Charlie | last post by:
Hi: I need a way to test my TcpListner, but not sure what applications are sending data to tcp ports. How about Email or Instant Messenger? If they are tcp, what ports are they sending data...
15
by: colin | last post by:
Hi, Im familiar with c,c++ etc, and Ive spent a week trying to write my first app in c# it works reasonably well, but im having difficulty getting to grips with inter thread signalling etc. I...
0
by: misra | last post by:
Hi, I am using a C# code to call blat and send mail. When I send mails with long sentences, the mail automatically is send with multiple lines. However, certain times the body and format of the...
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
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,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
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,...

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.