Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / April 2006

Tip: Looking for answers? Try searching our database.

System.DelegateSerializationHolder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paulo Morgado [MVP] - 01 Mar 2005 15:51 GMT
Hi *

I'm trying to make this run:

FIX: Remoted Events (Chat) Sample in Framework Documentation Does Not Work
as Expected
http://support.microsoft.com/default.aspx?scid=kb;en-us;312114

But I'm getting this:

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

Server stack trace:
  at System.Runtime.Serialization.FormatterServices.CheckTypeSecurity(Type
t, TypeFilterLevel securityLevel)
  at
System.Runtime.Serialization.Formatters.Soap.ObjectReader.CheckSecurity(ParseRecord pr)
  at
System.Runtime.Serialization.Formatters.Soap.ObjectReader.ParseObject(ParseRecord pr)
  at
System.Runtime.Serialization.Formatters.Soap.ObjectReader.Parse(ParseRecord
pr)
  at System.Runtime.Serialization.Formatters.Soap.SoapHandler.StartChildren()
  at System.Runtime.Serialization.Formatters.Soap.SoapParser.ParseXml()
  at System.Runtime.Serialization.Formatters.Soap.SoapParser.Run()
  at
System.Runtime.Serialization.Formatters.Soap.ObjectReader.Deserialize(HeaderHandler handler, ISerParser serParser)
  at
System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler)
  at
System.Runtime.Remoting.Channels.CoreChannel.DeserializeSoapRequestMessage(Stream
inputStream, Header[] h, Boolean bStrictBinding, TypeFilterLevel
securityLevel)
  at
System.Runtime.Remoting.Channels.SoapServerFormatterSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders,
Stream& responseStream)

Exception rethrown at [0]:
  at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
  at Chat.ChatCoordinator.add_Submission(SubmissionEventHandler value) in
f:\visual studio
projects\testes\remoting\solution1\objecto\chatcoordinator.cs:line 70
  at Chat.ChatClient.Run() in f:\visual studio
projects\testes\remoting\solution1\cliente\chatclient.cs:line 36

when I try to add an event handler to ChatCoordinator.Subission.

Runing on XPproSP2/.NET 1.1SP1

Signature

Paulo Morgado

Paulo Morgado [MVP] - 20 Mar 2005 21:54 GMT
Found it. The problem was the missing typeFilterLevel attribute with the
full value. ChatCentral.exe.config should be:

<configuration>
<system.runtime.remoting>
 <application>
  <service>
   <wellknown mode="Singleton" type="Chat.ChatCoordinator, ChatCoordinator"
objectUri="Chat" />
  </service>
  <channels>
   <channel ref="http" port="8080">
    <serverProviders>
     <provider ref="wsdl" />
     <formatter ref="soap" typeFilterLevel="Full" />
     <formatter ref="binary" typeFilterLevel="Full" />
    </serverProviders>
   </channel>
  </channels>
 </application>
</system.runtime.remoting>
</configuration>
machcoder - 27 Apr 2006 06:32 GMT
Been having the same problem using the sample from the MCAD self-paced
training kit for exam 70-310.  Tried your solution to no avail.  Any ideas?

> Found it. The problem was the missing typeFilterLevel attribute with the
> full value. ChatCentral.exe.config should be:
[quoted text clipped - 18 lines]
>  </system.runtime.remoting>
> </configuration>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.