remoting security exception - assembly trust issue?

Last post 12-01-2005 11:25 AM by Jerbert. 1 replies.

Sort Posts:

  • remoting security exception - assembly trust issue?

    11-30-2005, 5:32 PM
    • Member
      245 point Member
    • Jerbert
    • Member since 09-01-2005, 12:05 AM
    • Posts 49
    I set up remoting for an asp.net 2.0 application I'm developing, but IIS isn't letting me access the server object:

    "System.Security.SecurityException: Request failed."

    I think this is an assembly trust issue, and I noticed that in 1.1, you can just click the Microsoft .net framework 1.1 wizards shortcut in administrative tools and then choose the "trust an assembly" option.  I don't see anything as simple for .net 2.0, so I'm wondering if you guys could help me.  Can I fix this with configuration settings in the <system.runtime.remoting /> section of the web.config?


    thanks.

  • Re: remoting security exception - assembly trust issue?

    12-01-2005, 11:25 AM
    • Member
      245 point Member
    • Jerbert
    • Member since 09-01-2005, 12:05 AM
    • Posts 49
    found the fix:

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

    you just put that in your <system.runtime.remoting /> settings section in web.config for the server.

Page 1 of 1 (2 items)