Rodolfo, I'm also having this issue.

I'm actually using the latest FluentNhibernate (v1.2). And yes, from
the article you mentioned (http://goo.gl/gWcRB) I looked at the source
code as well, it's already set to false.

I also found this old article,
http://iamdotnetcrazy.blogspot.com/2010/09/how-to-get-fluent-nhibernate-nhibernate.html.
However..it's old and the binaries she's referring to is quite old.

If you hear or find a fix, please let me know.

On Feb 24, 7:53 am, Rodolfo Pereira <[email protected]> wrote:
> I have a MVC3 application running in aMediumTrustServer, that use
> Castle ActiveRecord, but if I enable the Lazy Loading, a yellow sreen
> Security Exception is showed to me. If I disable the Lazy Loading,
> everything works.
>
> There is a way to use Lazy Loading in aMediumTrustServer with
> Castle.Core version 3 and nHibernate 3.1.0.4000?
>
> In my searches on Google, I found this options:
>
> Pre-Generate Lazy Loading Proxies
>
> http://nhforge.org/wikis/howtonh/pre-generate-lazy-loading-proxies.aspx
>
> I tried, but looks like that don't work with Caste.Core 3 and
> nHibernate 3.1. I'm wrong?
>
> Looks like this option dont receive updates for a long time and this
> is bad.
>
> New adventures undermediumtrust
>
> http://blogs.taiga.nl/martijn/2009/06/24/new-adventures-under-medium-...
>
> In Castle DynamicProxy topic, I found:
>
> "The solution was a simple one: DynamicProxy calls
> AssemblyBuilder.DefineDynamicModule and used the overload that
> generates debug symbols. Changing that to not generate the debug
> symbols anymore made it work undermediumtrust!"
>
> I open source of Castle.Core and I found
> AssemblyBuilder.DefineDynamicModule in ModuleScope.cs (Castle.Core
> \DynamicProxy), and in calls its already set false to generate debug
> symbols.
>
> Sorry for my english and thanks.

-- 
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