Click here to Skip to main content
16,006,348 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: .NET 2.0?? Pin
bneacetp9-Nov-05 13:13
bneacetp9-Nov-05 13:13 
AnswerRe: .NET 2.0?? Pin
Dave Kreskowiak10-Nov-05 6:21
mveDave Kreskowiak10-Nov-05 6:21 
AnswerRe: .NET 2.0?? Pin
ricardojb14-Nov-05 16:49
ricardojb14-Nov-05 16:49 
QuestionGDI+ metafile Pin
Timothy Tim9-Nov-05 0:59
Timothy Tim9-Nov-05 0:59 
Questionworker thread and event handler Pin
David Menéndez Cisterna9-Nov-05 0:00
David Menéndez Cisterna9-Nov-05 0:00 
AnswerRe: worker thread and event handler Pin
S. Senthil Kumar10-Nov-05 5:04
S. Senthil Kumar10-Nov-05 5:04 
GeneralRe: worker thread and event handler Pin
David Menéndez Cisterna10-Nov-05 6:10
David Menéndez Cisterna10-Nov-05 6:10 
GeneralRe: worker thread and event handler Pin
S. Senthil Kumar10-Nov-05 18:52
S. Senthil Kumar10-Nov-05 18:52 
QuestionToday Screen issue with German OS. Pin
Sevu8-Nov-05 22:50
Sevu8-Nov-05 22:50 
Questionhow to add module in c#.net Pin
sarayumadhavan8-Nov-05 19:56
sarayumadhavan8-Nov-05 19:56 
AnswerRe: how to add module in c#.net Pin
CoolAmir9-Nov-05 6:21
CoolAmir9-Nov-05 6:21 
GeneralRe: how to add module in c#.net Pin
sarayumadhavan9-Nov-05 21:07
sarayumadhavan9-Nov-05 21:07 
GeneralRe: how to add module in c#.net Pin
CoolAmir13-Nov-05 6:10
CoolAmir13-Nov-05 6:10 
AnswerRe: how to add module in c#.net Pin
Colin Angus Mackay11-Nov-05 5:52
Colin Angus Mackay11-Nov-05 5:52 
GeneralRe: how to add module in c#.net Pin
CoolAmir13-Nov-05 6:44
CoolAmir13-Nov-05 6:44 
GeneralRe: how to add module in c#.net Pin
sarayumadhavan21-Nov-05 1:01
sarayumadhavan21-Nov-05 1:01 
QuestionMassive UI updating & perfomance Pin
David Menéndez Cisterna8-Nov-05 9:11
David Menéndez Cisterna8-Nov-05 9:11 
AnswerRe: Massive UI updating & perfomance Pin
[Marc]8-Nov-05 11:40
[Marc]8-Nov-05 11:40 
GeneralRe: Massive UI updating & perfomance Pin
David Menéndez Cisterna8-Nov-05 23:58
David Menéndez Cisterna8-Nov-05 23:58 
Questionsetup project with Visual Studio .NET 2003 Pin
madretierra8-Nov-05 6:34
madretierra8-Nov-05 6:34 
AnswerRe: setup project with Visual Studio .NET 2003 Pin
rwestgraham9-Nov-05 10:16
rwestgraham9-Nov-05 10:16 
GeneralRe: setup project with Visual Studio .NET 2003 Pin
madretierra9-Nov-05 22:55
madretierra9-Nov-05 22:55 
QuestionSystem.Xml.Serialization - deserializing xml to types created in dynamic assembly Pin
Rein_Petersen8-Nov-05 5:56
Rein_Petersen8-Nov-05 5:56 
AnswerRe: System.Xml.Serialization - deserializing xml to types created in dynamic assembly Pin
leppie12-Nov-05 12:58
leppie12-Nov-05 12:58 
QuestionFor native clients to receive notifications from remoting callback interfaces... Pin
chervu8-Nov-05 4:06
chervu8-Nov-05 4: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,


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.