Pass a remote object to a remote method in C?

Vbigiani This article should shed some light on your problem: weblogs.asp.net/jan/archive/2003/06/01/8... If that doesn't work, you can get several relevant Google hits here: Because of security restrictions, the type System.Runtime.Remoting. ObjRef cannot be accessed.

Vbigiani, This article should shed some light on your problem: weblogs.asp.net/jan/archive/2003/06/01/8... If that doesn't work, you can get several relevant Google hits here: Because of security restrictions, the type System.Runtime.Remoting. ObjRef cannot be accessed.

That solved it, thank you! – vbigiani May 31 '09 at 22:51.

I have written this kind of code before, but I have never tried to pass a server object to another server object in this way. I'm not a security expert, but I can sense why this might not be allowed. You should obtain the message directly from Server1, rather than asking another remote server to return it.In other words, your message retrieval logic needs to be in the client.

That was just some sample code to demonstrate the problem. In my real code, SharpRemotingDLL is a class exporting basic file operations (CreateFile, ReadFile etc. ) and I'm using a similar synthax to implement CopyFile and MoveFile between two servers: client usage server1. CopyFile("foo.

Txt",server2) CopyFile method: public void CopyFile(String name, SharpRemotingDLL server) { server. WriteFile(name,this. ReadFile(name)); } – vbigiani May 31 '09 at 17:14 What is the exact wording of the error message?

– Robert Harvey? May 31 '09 at 17:37 I can't translate exactly because my OS is in Italian, and googling for the error message is unhelpful. Anyway: pastebin.

Com/m6219b56f – vbigiani May 31 '09 at 18:09.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions