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>