Click here to Skip to main content
15,905,683 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: what is CodeDom ???? Pin
PavanPareta5-Feb-07 19:25
PavanPareta5-Feb-07 19:25 
AnswerRe: what is CodeDom ???? Pin
DavidNohejl5-Feb-07 22:53
DavidNohejl5-Feb-07 22:53 
QuestionVIDEO WATERMARKING Pin
PREDATORUNLEASHED2-Feb-07 21:49
PREDATORUNLEASHED2-Feb-07 21:49 
AnswerRe: VIDEO WATERMARKING Pin
Christian Graus2-Feb-07 22:07
protectorChristian Graus2-Feb-07 22:07 
GeneralGood evening Christian Pin
indian1432-Feb-07 22:39
indian1432-Feb-07 22:39 
GeneralRe: Good evening Christian Pin
Christian Graus2-Feb-07 22:50
protectorChristian Graus2-Feb-07 22:50 
GeneralRe: Good evening Christian Pin
indian1432-Feb-07 22:59
indian1432-Feb-07 22:59 
QuestionRemoting : Event Handing of the Remote Object on Server Hosting the Remote Object Pin
Pramod Kumar R2-Feb-07 20:27
Pramod Kumar R2-Feb-07 20:27 
I have a REmote Object as given Below

Public Class ClsFixRem
Inherits MarshalByRefObject

Public Delegate Sub EventHlndr(ByVal ObjOrderMsg As ClsFixRem.OrderMsg)
Public Event Evnt As EventHlndr

Public Function MessageSend(ByVal Ds As DataSet) As String
Dim Objmsg As New OrderMsg
Objmsg.OrderNo = "470"
RaiseEvent Evnt(Objmsg)
End Function
End Class


I have a Server Exe Hosting the REmote Object as given Below. It is a winform app.

Dim channel As New Tcp.TcpChannel(8085)
Dim r As New RemLib.ClsFixRem
RemotingConfiguration.RegisterWellKnownServiceType
("RemLib.ClsFixRem, Remlib", "RemLib.ClsFixRem",
WellKnownObjectMode.Singleton)
Obj1 = New RemLib.ClsFixRem
AddHandler Obj1.Evnt, AddressOf handlevent

Event Handler in Server.exe
Public Sub handlevent(ByVal ObjOrderMsg As RemLib.ClsFixRem.OrderMsg)
MsgBox("handleevent")
End Sub

Client.exe
===========

It is asp.net web application.

If ChannelServices.RegisteredChannels.Length = 0 Then
ChannelServices.RegisterChannel(chnl)
End If

Objrelib = CType(Activator.GetObject
("RemLib.ClsFixRem,Remlib",
"tcp://localhost:8085/RemLib.ClsFixRem"),
RemLib.ClsFixRem)
s = Nothing
Dim str As String
str = Objrelib.MessageSend(dsTemp)

=========
The server.exe is connected to a third system thru a tcp socket. the socket connection is opened when the server.exe starts. the connection should be kept open.

When the client activate the remote object (Remlib) and call the method MessageSend. it should fire the EVent which is handled on the server Exe. in this event handler on the server.exe sends data to the socket and it awaits the response from the third system.

The client of the application is a asp.net web application.

Now when the MessageSend method on the Remote object (Remlib) is called from the asp.net application the event handler on the server.exe is not getting handled.

and because of this i could not send the message to the socket.

Can you give a solution for this.





Regards
Pramod Kumar R
QuestionConverting Text to Numbers Pin
MikeMarq2-Feb-07 20:19
MikeMarq2-Feb-07 20:19 
AnswerRe: Converting Text to Numbers Pin
Christian Graus2-Feb-07 22:18
protectorChristian Graus2-Feb-07 22:18 
AnswerRe: Converting Text to Numbers [modified] Pin
Thomas Stockwell3-Feb-07 7:41
professionalThomas Stockwell3-Feb-07 7:41 
AnswerRe: Converting Text to Numbers Pin
Guffa3-Feb-07 8:54
Guffa3-Feb-07 8:54 
AnswerRe: Converting Text to Numbers Pin
MikeMarq3-Feb-07 11:46
MikeMarq3-Feb-07 11:46 
GeneralRe: Converting Text to Numbers Pin
Guffa3-Feb-07 12:28
Guffa3-Feb-07 12:28 
GeneralRe: Converting Text to Numbers Pin
Thomas Stockwell3-Feb-07 15:52
professionalThomas Stockwell3-Feb-07 15:52 
GeneralRe: Converting Text to Numbers Pin
CPP_Student4-Feb-07 21:55
CPP_Student4-Feb-07 21:55 
QuestionDataGridViewButtonColumn/Cell with bitmap on button face? Pin
Norm Byers2-Feb-07 15:48
Norm Byers2-Feb-07 15:48 
QuestionGray Scale [modified] Pin
Jim Warburton2-Feb-07 7:07
Jim Warburton2-Feb-07 7:07 
AnswerRe: Gray Scale Pin
Luc Pattyn2-Feb-07 10:29
sitebuilderLuc Pattyn2-Feb-07 10:29 
AnswerRe: Gray Scale Pin
Christian Graus2-Feb-07 22:13
protectorChristian Graus2-Feb-07 22:13 
QuestionNeed help regarding Property grid. Pin
sandipan.neogi@gmail.com1-Feb-07 22:24
sandipan.neogi@gmail.com1-Feb-07 22:24 
AnswerRe: Need help regarding Property grid. Pin
Pete O'Hanlon1-Feb-07 22:36
mvePete O'Hanlon1-Feb-07 22:36 
QuestionReceiving COM events without TYPELIB Pin
Aleksey.Andreev1-Feb-07 21:51
Aleksey.Andreev1-Feb-07 21:51 
Questionelp mehow to insert undeletable image in word document Pin
Kumar Arun1-Feb-07 19:17
Kumar Arun1-Feb-07 19:17 
AnswerRe: elp mehow to insert undeletable image in word document Pin
Pete O'Hanlon1-Feb-07 22:32
mvePete O'Hanlon1-Feb-07 22:32 

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.