Click here to Skip to main content
14,841,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: Retreiving available parameters from executables...is it possible? Pin
Joe Woodbury10-Jul-08 16:59
professionalJoe Woodbury10-Jul-08 16:59 
GeneralRe: Retreiving available parameters from executables...is it possible? Pin
Ashfield10-Jul-08 21:13
MemberAshfield10-Jul-08 21:13 
GeneralRe: Retreiving available parameters from executables...is it possible? Pin
Joe Woodbury11-Jul-08 5:14
professionalJoe Woodbury11-Jul-08 5:14 
GeneralRe: Retreiving available parameters from executables...is it possible? Pin
Ashfield11-Jul-08 9:32
MemberAshfield11-Jul-08 9:32 
QuestionDataGridView strange Pin
muharrem10-Jul-08 9:18
Membermuharrem10-Jul-08 9:18 
AnswerRe: DataGridView strange Pin
paas10-Jul-08 9:36
Memberpaas10-Jul-08 9:36 
GeneralRe: DataGridView strange Pin
muharrem10-Jul-08 10:49
Membermuharrem10-Jul-08 10:49 
QuestionRemoting - sending a message from both server and client? Pin
Iron Goat10-Jul-08 9:02
MemberIron Goat10-Jul-08 9:02 
I have an windows service that sends a message via remoting to a gui app on the same machine, which works great.

Now I need to send an unrelated message back from the GUI to the service i.e. two way messaging. I tried to create another remoting channel on a seperate port, however this does not work. I feel as though I'm missing the point here as it would seem I can't run a client and server in the same app. How would I go about this?

//Code on the windows service

//Create client to send message to GUI 
ChannelServices.RegisterChannel(new TcpChannel(), false);
// Register our tcp channel
rmComDataReceived = (ComDataReceived)Activator.GetObject(
typeof(ComDataReceived), "tcp://localhost:50050/ComDataReceived");

//Create server to listen for messages from GUI
ChannelServices.RegisterChannel(new TcpServerChannel(50051), false);
// Register our channel to receive paging messages from GUI
rmSendPagingMsg = new SendPagingMessage();
ObjRef refSendPagingMessage = RemotingServices.Marshal(rmSendPagingMsg, "SendPagingMessage");
// Register ourself to receive paging transmissions from the GUI to this service
rmSendPagingMsg.SendPagingMessageEvent += new SendPagingMessage.SendPagingMessageEventHandler(Service_SendPagingMessageEvent);


The code above produces the error message: The channel 'tcp' is already registered
AnswerRe: Remoting - sending a message from both server and client? Pin
mav.northwind11-Jul-08 21:31
Membermav.northwind11-Jul-08 21:31 
Questionneed help with LOOP to display records from Access Database............ Pin
Reality Strikes10-Jul-08 8:48
MemberReality Strikes10-Jul-08 8:48 
AnswerRe: need help with LOOP to display records from Access Database............ Pin
Pete O'Hanlon10-Jul-08 8:58
mvePete O'Hanlon10-Jul-08 8:58 
GeneralRe: need help with LOOP to display records from Access Database............ Pin
Reality Strikes11-Jul-08 5:21
MemberReality Strikes11-Jul-08 5:21 
AnswerRe: need help with LOOP to display records from Access Database............ Pin
Reality Strikes10-Jul-08 9:12
MemberReality Strikes10-Jul-08 9:12 
QuestionDestroying Object from memory Pin
Saksida Bojan10-Jul-08 8:44
MemberSaksida Bojan10-Jul-08 8:44 
AnswerRe: Destroying Object from memory Pin
Thomas Stockwell10-Jul-08 10:33
professionalThomas Stockwell10-Jul-08 10:33 
AnswerRe: Destroying Object from memory Pin
Robert.C.Cartaino10-Jul-08 14:32
MemberRobert.C.Cartaino10-Jul-08 14:32 
GeneralRe: Destroying Object from memory Pin
Scott Dorman10-Jul-08 17:02
professionalScott Dorman10-Jul-08 17:02 
AnswerRe: Destroying Object from memory Pin
N a v a n e e t h10-Jul-08 19:32
MemberN a v a n e e t h10-Jul-08 19:32 
QuestionMouse event Pin
zeeShan anSari10-Jul-08 8:18
MemberzeeShan anSari10-Jul-08 8:18 
AnswerRe: Mouse event Pin
DaveyM6910-Jul-08 8:29
professionalDaveyM6910-Jul-08 8:29 
QuestionRe: Mouse event Pin
zeeShan anSari10-Jul-08 8:34
MemberzeeShan anSari10-Jul-08 8:34 
AnswerRe: Mouse event Pin
TheFM23410-Jul-08 9:48
MemberTheFM23410-Jul-08 9:48 
AnswerRe: Mouse event Pin
PIEBALDconsult10-Jul-08 8:46
professionalPIEBALDconsult10-Jul-08 8:46 
QuestionSimple Regex question Pin
kozu10-Jul-08 8:13
Memberkozu10-Jul-08 8:13 
AnswerRe: Simple Regex question Pin
Jimmanuel10-Jul-08 8:26
MemberJimmanuel10-Jul-08 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.