By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,671 Members | 1,567 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,671 IT Pros & Developers. It's quick & easy.

remoting passing MarshalByRefObject by reference -- TypeFilterLevel.Full

P: n/a
I have two Singleton SAOs on the server. But one of them has to have a
reference to the other one. So I have to pass one MarshalByRefObject to
another one .. when I try to do it, I get:

SerializationException
Because of security restrictions the type System.Runtime.Remoting.ObjRef
cannot be accessed.

I can do that to solve it:

BinaryServerFormatterSinkProvider serverProvider = new
BinaryServerFormatterSinkProvider();
serverProvider.TypeFilterLevel =
System.Runtime.Serialization.Formatters.TypeFilter Level.Full;

but it is not recommended.

So how could I solve the problem without setting the Full filter level?

One of my classes is fo storing settings and it has to be passed to other
class which does the backup and has to get and set some settings to the
first class.

your help would be most appreciated

David

Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.