Is it possible to use RealProxy to expose class interfaces over Remoting without MarshalByRefObject?

Up vote 0 down vote favorite share g+ share fb share tw.

Currently I am having a problem where proxy receives a call to InitializeLifetimeService, and whatever I return from it (including null), I am always getting a following exception: System. InvalidCastException:Return argument has an invalid type at System.Runtime.Remoting.Proxies.RealProxy. ValidateReturnArg(Object arg, Type paramType) at System.Runtime.Remoting.Proxies.RealProxy.

PropagateOutParameters(IMessage msg, Object outArgs, Object returnValue) at System.Runtime.Remoting.Proxies.RealProxy. HandleReturnmessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy. PrivateInvoke(MessageData& msgData, Int32 type) remoting link|improve this question asked Dec 8 '11 at 4:26Andrey Shchekin2,9241433 70% accept rate.

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