Could not load file or assembly 'Castle.DynamicProxy2'

sazonov's Avatar

sazonov

16 Oct, 2010 09:50 PM via web

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

  1. 2 Posted by sazonov on 20 Oct, 2010 05:44 PM

    sazonov's Avatar

    Who can help me ?

  2. Support Staff 3 Posted by James Gregory on 20 Oct, 2010 06:32 PM

    James Gregory's Avatar

    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:

  3. 4 Posted by sazonov on 20 Oct, 2010 07:41 PM

    sazonov's Avatar

    Yes

  4. Support Staff 5 Posted by James Gregory on 20 Oct, 2010 07:52 PM

    James Gregory's Avatar

    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:

  5. 6 Posted by sazonov on 21 Oct, 2010 04:45 AM

    sazonov's Avatar

    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.

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

    You can attach files up to 10MB

    What is five times five?