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

  • Home
  • SEARCH
  • 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 3241868
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:14:54+00:00 2026-05-17T18:14:54+00:00

Well, As I read and try every topic similar without success, I decided to

  • 0

Well,

As I read and try every topic similar without success, I decided to post my own question.
My solution has a console app and a class library for dataaccess. The Nhibernate configuration is inside the appconfig in the console app (which I’m currently using for debug, as I will after make a Web App and migrate all configuration to web.config).

The exception is well know:

NHibernate.Bytecode.UnableToLoadProxyFactoryFactoryException: Unable to load type NHibernate.ByteCode.Castle.ProxyFactoryFactory,NHibernate.ByteCode.Castle.dll' 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.IO.FileNotFoundException: Could not load file or assembly 'NHibernate.ByteCode.Castle.dll' or one of its dependencies. The system cannot find the file specified.

The steps I took to try to solve it:

1) The dll in the deployment folder – I have the following dll in my bin:
Antlr3.Runtime.dll – v. 3.1.3.42154
Castle.Core.dll – v. 2.5.1.2121
Castle.DynamicProxy2.dll – v. 2.2.0.6628
Iesi.Collections.dll – v.3.0.0.1002
log4net.dll – v. 1.2.10.0
NHibernate.ByteCode.Castle.dll – v.3.0.0.2001
NHibernate.dll – v.3.0.0.1002
Oracle.DataAccess.dll – v.4.112.1.2
Remotion.Data.Linq.dll – v.1.13.41.2

2) The configuration in configuration block

 <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
  <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
  <property name="dialect">NHibernate.Dialect.Oracle10gDialect</property>
  <property name="connection.driver_class">NHibernate.Driver.OracleDataClientDriver</property>
  <property name="connection.connection_string_name">MetaManager</property>
  <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory,NHibernate.ByteCode.Castle</property>
  <mapping assembly="MetaManager.Data"/>
</session-factory>

3) I set my MetaManager.Data project to deploy in a x86 CPU
4) All dll in my bin folder are referenced in the project.

I think this it it. I do not know were else to go 🙁

Pedro Dusso

updates in bold

  • 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-17T18:14:55+00:00Added an answer on May 17, 2026 at 6:14 pm

    I think you have the wrong Castle version. You should be having Castle.Core.dll. NHibernate.ByteCode.Castle.dll probably isn’t loaded because it cannot find Castle.Core.dll.

    In the download from http://sourceforge.net/projects/nhibernate/files/NHibernate/3.0.0Beta1/, the files located in \Required_For_LazyLoading\Castle are the files you need.

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

Sidebar

Related Questions

A have read about A* as well as D* and similar, and i'm not
I recently read a post about no longer needing to declare ivars as well
I want to be able to read any well-formed RSS/ATOM file. That would mean
Well - the more I read the more confused I get. So here the
Well, I've read (and learned) that the finally block doesn't always execute its code
Well, I read several issues (here and other sites) about class level validation with
I've read several topics about this as well as the API and I feel
Well is there? From everything I've read, it seems like the answer is no,but
Well, I am abit confuse using these \r,\n,\t etc things. Because I read online
You always read that for-in loops should check o.hasOwnProperty(k) to skip over Object.prototype. Well,

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.