Tuesday, March 13, 2012

System.Runtime.Remoting.ObjRef cannot be accessed

Hi.

I'm trying to pass a filestream to a remoted procedure in my ASP.NET application.

I've used remoted procedures which have returned filestreams in the same application without any problems, however when I try to execute a similar procedure and pass a filestream I get the following error:

Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed.

It's driving me simple. Does anyone have a clue whats going on?

Thanks in advance everyone.

Justin.All I can find on the web suggests for me to add something similar to this to my web.config file to allow relaxed security.

<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown
type="ServiceType, common"
objectUri=" ServiceType.soap"
mode="Singleton"
/>
</service>

<channels>
<channel ref="http">
<serverProviders>
<provider ref="wsdl" />
<formatter ref="soap" typeFilterLevel=Full />
<formatter ref="binary" typeFilterLevel=Full />
</serverProviders>
</channel>
</channels>
</application>
</configuration>

But no joy.

0 comments:

Post a Comment