Hi Hammet,

I'm also having a Medium Trust issue. And just as FYI, I'm using
FluentNHibernate v1.2 (for NH3.1).

I'm setting it up via web.config:


    <location allowOverride="true">
        <system.web>
            <securityPolicy>
                <trustLevel name="Full"  policyFile="internal" />
                <trustLevel name="High"
policyFile="web_hightrust.config" />
                <trustLevel name="Medium"
policyFile="web_mediumtrust.config" />
....
            </securityPolicy>
            <trust level="Medium" originUrl="" />
        </system.web>
    </location>

I can provide you a copy of my mediumtrust config file. It was
provided to me by my hosting provider.


Thanks,
Josh

On Mar 9, 7:52 pm, hammett <[email protected]> wrote:
> Are you setting up your own appdomain or are you just using asp.net in
> medium trust?
>
>
>
>
>
>
>
>
>
> On Fri, Mar 9, 2012 at 2:14 AM, Phil Whittaker <[email protected]> wrote:
> > I am trying to run Castle in medium trust as a sandbox. I have added the
> > APTC tag and the [assembly: SecurityRules(System.Security.
> > SecurityRuleSet.Level1)].
>
> > I am still getting a security error when constrcuting dynamic proxy
>
> > [SecurityException: Request failed.]
> > Castle.Core.Internal.PermissionUtil.IsGranted(IPermission permission) +0
> > Castle.DynamicProxy.ProxyGenerator..ctor(IProxyBuilder builder) +90
> > Castle.Windsor.Proxy.DefaultProxyFactory.Init() +114
> > Castle.Windsor.WindsorContainer..ctor(String name, IKernel kernel,
> > IComponentsInstaller
>
> > What can I do to fix this?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Castle Project Users" group.
> > To view this discussion on the web visit
> >https://groups.google.com/d/msg/castle-project-users/-/RsVopcrZyp8J.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/castle-project-users?hl=en.
>
> --
> Cheers,
> hammetthttp://hammett.castleproject.org/

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to