L'initialiseur de type pour 'NHibernate.Cfg.Configuration " a déclenché une exception

Je suis en utilisant FluentNHibernate et pendant la phase de configuration, j'obtiens l'erreur suivante:

Voici la configuration:

public static ISessionFactory CreateSessionFactory()
{
de retour
Couramment.Configurer().Base de données(
MsSqlConfiguration.MsSql2000.ConnectionString(
c => c.FromConnectionStringWithKey("HighOnCodingConnectionString")))
.Mappages(m =>
m.FluentMappings.AddFromAssemblyOf())
.BuildSessionFactory();
}

Et voici l'erreur:

[défaut] when_instantiating_a_session_factory.should_be_able_to_create_a_session_factory
Cas de test 'when_instantiating_a_session_factory.should_be_able_to_create_a_session_factory'
a échoué: L'initialiseur de type pour 'NHibernate.Cfg.Configuration " a déclenché une exception.
Système.TypeInitializationException
Message: L'initialiseur de type pour 'NHibernate.Cfg.Configuration " a déclenché une exception.
Source: NHibernate
StackTrace:
au NHibernate.Cfg.Configuration..ctor()
c:\FluentNHibernate\src\FluentNHibernate\Cfg\FluentConfiguration.cs(25,0): à FluentNHibernate.Cfg.FluentConfiguration..ctor()
c:\FluentNHibernate\src\FluentNHibernate\Cfg\Couramment.cs(16,0): à FluentNHibernate.Cfg.Couramment.Configurer()
C:\Projects\highoncodingmvc\src\highoncoding\src\HighOnCoding.BusinessObjects\Factories\SessionFactory.cs(17,0): à HighOnCoding.BusinessObjects.Les usines.SessionFactory.CreateSessionFactory()
C:\Projects\highoncodingmvc\src\highoncoding\src\HighOnCoding.TestSuite\Configuration\TestFluentNHiberate.cs(17,0): HighOnCoding.TestSuite.Configuration.when_instantiating_a_session_factory.should_be_able_to_create_a_session_factory()
Exception Interne
Système.IO.FileLoadException
Message: L'assemblée manifeste définition ne correspond pas à la référence d'assembly. (Exception de HRESULT: 0x80131040)
Source: NHibernate
StackTrace:
au NHibernate.Cfg.Configuration..cctor()

Ici, c'est le journal d'information de FusionLog chose:

* Assemblée Liant Entrée de Journal (6/21/2009 @ 12:49:38 PM) *

L'opération a échoué.
Lier résultat: hr = 0x80070002. Le système ne peut pas trouver le fichier spécifié.

Assemblée manager chargé de: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
L'exécution en vertu de l'exécutable C:\Projects\highoncodingmvc\src\highoncoding\src\HighOnCodingConsole\bin\Debug\HighOnCodingConsole.exe
--- Un journal d'erreurs détaillé de la façon suivante.

=== Pré-lier les informations d'état ===
JOURNAL: Utilisateur = D9SKQBG1\AzamSharp
JOURNAL: DisplayName = NHibernate.XmlSerializers, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL
(Complètement spécifié)
JOURNAL: Appbase = file:///C:/Projets/highoncodingmvc/src/highoncoding/src/HighOnCodingConsole/bin/Debug/
JOURNAL: Initiale PrivatePath = NULL
JOURNAL: Dynamique de la Base = NULL
JOURNAL: le Cache de la Base = NULL
JOURNAL: AppName = NULL

L'appel de l'assemblée : System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.

JOURNAL: Cette liaison commence en charge par défaut le contexte.
JOURNAL: l'Utilisation de fichier de configuration d'application: C:\Projects\highoncodingmvc\src\highoncoding\src\HighOnCodingConsole\bin\Debug\HighOnCodingConsole.exe.Config
JOURNAL: l'Utilisation de la machine fichier de configuration de c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
JOURNAL: Post-politique de référence: NHibernate.XmlSerializers, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL
JOURNAL: GAC de Recherche a été infructueuse.
JOURNAL: la Tentative de téléchargement de la nouvelle URL file:///C:/Projects/highoncodingmvc/src/highoncoding/src/HighOnCodingConsole/bin/Debug/NHibernate.XmlSerializers.DLL.
JOURNAL: la Tentative de téléchargement de la nouvelle URL file:///C:/Projects/highoncodingmvc/src/highoncoding/src/HighOnCodingConsole/bin/Debug/NHibernate.XmlSerializers/NHibernate.XmlSerializers.DLL.
JOURNAL: la Tentative de téléchargement de la nouvelle URL file:///C:/Projects/highoncodingmvc/src/highoncoding/src/HighOnCodingConsole/bin/Debug/NHibernate.XmlSerializers.EXE.
JOURNAL: la Tentative de téléchargement de la nouvelle URL file:///C:/Projects/highoncodingmvc/src/highoncoding/src/HighOnCodingConsole/bin/Debug/NHibernate.XmlSerializers/NHibernate.XmlSerializers.EXE.
JOURNAL: Tous les sonder Url tenté et échoué.

OriginalL'auteur azamsharp | 2009-06-21