Impossible de charger le type 'NHibernate.ByteCode.Château.ProxyFactoryFactory, NHibernate.ByteCode.Château'

Bien,

Comme je l'ai lu et essayer à chaque sujet similaire, sans succès, j'ai décidé de poster ma propre question.
Ma solution a une application console et une bibliothèque de classe pour dataaccess. Le Nhibernate configuration est à l'intérieur de la appconfig dans l'application console (que je suis en train de l'utiliser pour le débogage, comme je vais le faire après une Web App et de migrer l'ensemble de la configuration web.config).

L'exception est bien connu:

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.

Les étapes que j'ai pris pour essayer de le résoudre:

1) La dll dans le dossier de déploiement - j'ai de la suite de dll dans mon bac:
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) de La configuration dans le bloc de configuration

 <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) j'ai mis mon MetaManager.Les données de projet pour le déploiement dans un CPU x86
4) Toutes les dll dans mon dossier bin sont référencés dans le projet.

Je pense que ce qu'il. Je ne sais pas ont autre chose à faire(

Pedro Dusso

mises à jour dans gras

OriginalL'auteur Pedro Dusso | 2010-10-19