remoting v1.1

  • Thread starter Thread starter Stefan
  • Start date Start date
S

Stefan

I try to buid a remote app, i try to capture from the
remote object an event, but when i do that i get this
exception:

An unhandled exception of
type 'System.Security.SecurityException' occurred in
mscorlib.dll

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

How can i do this thing to work ?

Thx
 
Stefan said:
I try to buid a remote app, i try to capture from the
remote object an event, but when i do that i get this
exception:

An unhandled exception of
type 'System.Security.SecurityException' occurred in
mscorlib.dll

How can i do this thing to work ?

Add this section to the client and server's app.config, after the
</appSettings>:

<system.runtime.remoting>
<application>
<channels>
<channel displayName="TCP Port" ref="tcp" port="0">
<serverProviders>
<provider ref="wsdl" />
<formatter ref="soap" typeFilterLevel="Full" />
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>

They tightened security in 1.1. For more info and an alternative see:

http://msdn.microsoft.com/library/d...pconautomaticdeserializationinnetremoting.asp

-- Alan
 
Back
Top