Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6197099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:45:38+00:00 2026-05-24T03:45:38+00:00

I am building an application using NHibernate. Because I could not add the DLL’s

  • 0

I am building an application using NHibernate. Because I could not add the DLL’s of my current version of NHibernate (I cannot add reference when framework 4.0 is target).

I tried to get the latest and greatest of the w.w.w., this is what I have now:

  • NHibernate.dll (3.2.0.4000)
  • NHibernate.ByteCode.Castle (3.0.0.4000)
  • FluentNHibernate.dll (1.2.0.694)
  • Castle.Core (2.5.2.0)
  • Castle.Services.Logging.NLogIntegration (2.5.2.0)
  • Antlr.Runtim (3.1.3.42154)
  • Iesi.Collections (3.2.0.400)

These I can reference and build my solution with. I know there are some issues with the copying/loading of the dll.s so I made them deployment items.
But run-time I (still) get the following:

NHibernate.Bytecode.UnableToLoadProxyFactoryFactoryException: Unable to load type ‘NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle’ during configuration of proxy factory class.
Possible causes are:
– The NHibernate.Bytecode provider assembly was not deployed.
– The typeName used to initialize the ‘proxyfactory.factory_class’ property of the session-factory section is not well formed.

Solution:

Confirm that your deployment folder contains one of the following assemblies:

NHibernate.ByteCode.LinFu.dll
NHibernate.ByteCode.Castle.dll —> System.TypeLoadException: Method ‘IsProxy’ in type ‘NHibernate.ByteCode.Castle.ProxyFactoryFactory’ from assembly ‘NHibernate.ByteCode.Castle, Version=3.0.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4’ does not have an implementation.

Thoughts anyone?

In response to Vijay Gill’s answer I have decided to take a different tack.

NUGet packages, a one-stop shop, and easy updates!

There is a FluentNHibernate package out there. I have installed it but I guess there is something amiss here too:

Test method CoreDatabaseTests.CreateCoreDatabase threw exception:

System.IO.FileLoadException: Could not load file or assembly ‘NHibernate, Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) —> System.IO.FileLoadException: Could not load file or assembly ‘NHibernate, Version=3.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:45:38+00:00Added an answer on May 24, 2026 at 3:45 am

    Getting components from various locations in such cases is nto a good idea, you compile everything from scratch. Well that’s my experience so far. Fluent NH has not been updated to NH 3.2GA.

    I would suggest you to download fluent NH and stick with the version that comes with it OR if you want to be on the bleeding edge, download the sources of fluent NH and compile with references set to latest NH (3.2GA).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm learning the framework, and now building an application using it. I need to
I'm building an application using OpenJPA 2.0.0, Jersey 1.3, and JUnit 4.8.1. I've set
I'm building an application using WPF that will be a designer of sorts, meaning,
I am building an application using Raphaël. I have done my work on vectors,
We are building a web application using SVG & JS. The log file for
I'm building a web application and using lazy-loading as default. I would like the
I'm developing an Android application using Android 1.5. I'm using an older version of
I'm trying to develop my first web application using Web.Config transformations. Trying to run
Situation I'm creating a C#/WPF 4 application using a SQL Compact Edition database as
Is there anything else that the code must do to sanitize identifiers (table, view,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.