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

.NET (Core and Framework)

 
AnswerRe: Massive UI updating & perfomance Pin
[Marc]8-Nov-05 12:40
[Marc]8-Nov-05 12:40 
GeneralRe: Massive UI updating & perfomance Pin
David Menéndez Cisterna9-Nov-05 0:58
David Menéndez Cisterna9-Nov-05 0:58 
Questionsetup project with Visual Studio .NET 2003 Pin
madretierra8-Nov-05 7:34
madretierra8-Nov-05 7:34 
AnswerRe: setup project with Visual Studio .NET 2003 Pin
rwestgraham9-Nov-05 11:16
rwestgraham9-Nov-05 11:16 
GeneralRe: setup project with Visual Studio .NET 2003 Pin
madretierra9-Nov-05 23:55
madretierra9-Nov-05 23:55 
QuestionSystem.Xml.Serialization - deserializing xml to types created in dynamic assembly Pin
Rein_Petersen8-Nov-05 6:56
Rein_Petersen8-Nov-05 6:56 
AnswerRe: System.Xml.Serialization - deserializing xml to types created in dynamic assembly Pin
leppie12-Nov-05 13:58
leppie12-Nov-05 13:58 
QuestionFor native clients to receive notifications from remoting callback interfaces... Pin
chervu8-Nov-05 5:06
chervu8-Nov-05 5:06 
Hello,

I did the below experiment and I did not understand the cause for the exception. Can you please throw some light on this problem?
Also can you please clarify whether a native client can directly sink the .NET Remoting callbacks?

Description of Prototype:

This has mainly 3 modules viz. Remoting Server(C#), Adapter (MC++) and Client(Native C++).

(1) I implemented a SAO(Server Activated Object) singleton, in a C# .NET Remoting Server. Remoting object exposes ISrv interface. Also, Remoting object sends notifications via ISrc interface. These interfaces are defined in a C# Class library and shared across Client, Adapter and Server.

(2) I implemented an MC++ Adapter, a wrapper for the SAO. Adapter implements ISrv interface and exposes the same to native client(s). This basically holds a transparent proxy to the remoting object mentioned in (1).

(3) I implemented a native C++ client interacting with SAO via MC++ Adapter. Client was able to reach SAO via MC++ adapter using ISrv interface. Also Native client was able to receive notifications from C# SAO via sink class(on Cleint side). Actually the sink objects were registered onto SAO by clients via ISrv. SAO Singleton maintains such registered sink objects in an arraylist in its class scope. For some reason, I observed an exception when Server tries to send notifications, 5 minutes(approximately) after the sink object registration. I could not understand the reason for this problem. Can you please clarify? Below is the exception info:

Exception Message: "Requested service not found"
Exception Source: System.Runtime.Remoting.RemotingException

To get around this problem, I had to do the below changes to Adapter & Client modules:

I created a Sink class, derived from MBR and implementing ISrc in MC++ Adapter. Set the lifetime of Sink class to indefinite life time. Then Adapter was able to receive notifications from SAO without any problems as described above. In this experiment, I had to use a different interface between native client and Adapter for Adapter to relay SAO notifications back to the client.

Thank you in advance....

Best Regards,


AnswerRe: For native clients to receive notifications from remoting callback interfaces... Pin
S. Senthil Kumar8-Nov-05 5:38
S. Senthil Kumar8-Nov-05 5:38 
GeneralRe: For native clients to receive notifications from remoting callback interfaces... Pin
chervu8-Nov-05 7:18
chervu8-Nov-05 7:18 
GeneralRe: For native clients to receive notifications from remoting callback interfaces... Pin
S. Senthil Kumar8-Nov-05 22:45
S. Senthil Kumar8-Nov-05 22:45 
QuestionRefreshing all instances of a class on a queued message Pin
jlraffin8-Nov-05 1:43
jlraffin8-Nov-05 1:43 
AnswerRe: Refreshing all instances of a class on a queued message Pin
jlraffin8-Nov-05 5:53
jlraffin8-Nov-05 5:53 
QuestionDoesn't a Process have a user? Pin
Dave Midgley8-Nov-05 1:42
Dave Midgley8-Nov-05 1:42 
AnswerRe: Doesn't a Process have a user? Pin
S. Senthil Kumar8-Nov-05 6:12
S. Senthil Kumar8-Nov-05 6:12 
GeneralRe: Doesn't a Process have a user? Pin
Dave Midgley8-Nov-05 6:30
Dave Midgley8-Nov-05 6:30 
QuestionProblem using RSAPKCS1SignatureFormatter in Framework 1.1 Pin
dhanashekar7-Nov-05 20:44
dhanashekar7-Nov-05 20:44 
QuestionWPF(Avalon) Pin
1nsp1r3d7-Nov-05 7:42
1nsp1r3d7-Nov-05 7:42 
QuestionAccessing control from another file Pin
Eran6-Nov-05 23:49
Eran6-Nov-05 23:49 
QuestionVS.NET 2005 & VS.NET 2003 - can they co-exist safely? Pin
code_wiz5-Nov-05 10:59
code_wiz5-Nov-05 10:59 
AnswerRe: VS.NET 2005 & VS.NET 2003 - can they co-exist safely? Pin
Kevin McFarlane6-Nov-05 5:32
Kevin McFarlane6-Nov-05 5:32 
QuestionImplementing developers API, a question about access control... Pin
Member 965-Nov-05 6:57
Member 965-Nov-05 6:57 
QuestionTrain free @Microsoft Pin
vikas amin4-Nov-05 23:57
vikas amin4-Nov-05 23:57 
Questionhow to get the parent data Pin
sheerprogrammer4-Nov-05 21:25
sheerprogrammer4-Nov-05 21:25 
AnswerRe: how to get the parent data Pin
S. Senthil Kumar4-Nov-05 22:49
S. Senthil Kumar4-Nov-05 22:49 

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.