Results 1 to 2 of 2

Thread: System.Runtime.Remoting.ObjRef cannot be accessed

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Belfast, N. Ireland
    Posts
    167

    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.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Belfast, N. Ireland
    Posts
    167
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width