remoting v1.1

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
 
A

Alan Pretre

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top