Could not load file or assembly 'Castle.DynamicProxy2'
Hi! I start to work with FluentNHibernate 1.1. After configuration.BuildSessionFactory() execute, i have exception.
Message "Could not load file or assembly 'Castle.DynamicProxy2, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies.
But i referensed this library to project, and version is correct. Also Castle.Core referenced to project. I don't known how i can resolve this error...
2 Posted by sazonov on 20 Oct, 2010 05:44 PM
Who can help me ?
Support Staff 3 Posted by James Gregory on 20 Oct, 2010 06:32 PM
Is the assembly being copied to the output directory?
On Wed, Oct 20, 2010 at 6:46 PM, sazonov <
***@tenderapp.com<tender%***@tenderapp.com>
> wrote:
4 Posted by sazonov on 20 Oct, 2010 07:41 PM
Yes
Support Staff 5 Posted by James Gregory on 20 Oct, 2010 07:52 PM
Hmm. Are you using the assemblies that come with FNH, or ones you got from
somewhere else? (The NH dist maybe?).
On Wed, Oct 20, 2010 at 8:43 PM, sazonov <
***@tenderapp.com<tender%***@tenderapp.com>
> wrote:
6 Posted by sazonov on 21 Oct, 2010 04:45 AM
I'm using only FluentNHhibernate assemblies. I think this problem with medium trust security in .NET Framework ? How i can resolve this ? I'm try to use FluentNHIbernate in project on .NET Framework 4.0.