HighTechTalks DotNet Forums  

How to handle the events raised from remote server object in clien

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss How to handle the events raised from remote server object in clien in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mahesh Deo
 
Posts: n/a

Default How to handle the events raised from remote server object in clien - 12-29-2006 , 05:03 AM






How to handle the events raised from remote server object in client

When i tried doing that it gives following exception


Type System.DelegateSerializationHolder and the types derived from it (such
as System.DelegateSerializationHolder) are not permitted to be deserialized
at this security level.

Can some one teel me the correct way ?
Mahesh Deo


Reply With Quote
  #2  
Old   
lucky
 
Posts: n/a

Default Re: How to handle the events raised from remote server... - 01-16-2007 , 10:14 AM






I meet the same error.


Reply With Quote
  #3  
Old   
jacky kwok
 
Posts: n/a

Default Re: How to handle the events raised from remote server object inclien - 01-16-2007 , 08:35 PM



Mahesh Deo wrote:
Quote:
How to handle the events raised from remote server object in client

When i tried doing that it gives following exception


Type System.DelegateSerializationHolder and the types derived from it (such
as System.DelegateSerializationHolder) are not permitted to be deserialized
at this security level.

Can some one teel me the correct way ?
Mahesh Deo

refer "Secure Serialization in .NET Remoting. "
http://www.gotdotnet.com/team/change....aspx#00000153

--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk


Reply With Quote
  #4  
Old   
Laser Lu
 
Posts: n/a

Default Re: How to handle the events raised from remote server object in clien - 02-24-2007 , 12:11 AM



You need to explicitly set the desserialization level to Full. There're two
ways to achieve this:
1. Custruct your ServerFormatterSinkProvider programatically and set the
provider's TypeFilterLevel to 'Full' (The default value 'Low'.):

BinaryServerFormatterSinkProvider serverProvider = new
BinaryServerFormatterSinkProvider();
serverProvider.TypeFilterLevel = TypeFilterLevel.Full;
BinaryClientFormatterSinkProvider clientProvider = new
BinaryClientFormatterSinkProvider();
IDictionary props = new Hashtable();
props["port"] = 888;
mi_Channel = new TcpChannel(props, clientProvider, serverProvider);

2. Set the typeFilterLevel attribute of <formatter> element in your remoting
configuration file to 'Full'.

HTH,
Laser.NET

"Mahesh Deo" <MaheshDeo (AT) discussions (DOT) microsoft.com> wrote

Quote:
How to handle the events raised from remote server object in client

When i tried doing that it gives following exception


Type System.DelegateSerializationHolder and the types derived from it
(such
as System.DelegateSerializationHolder) are not permitted to be
deserialized
at this security level.

Can some one teel me the correct way ?
Mahesh Deo




Reply With Quote
  #5  
Old   
sumu
 
Posts: n/a

Default Re: How to handle the events raised from remote server object in clien - 03-08-2007 , 04:50 AM



i have already set typefilterlevel to full.Still am facing the same
error..
Any help?


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.