에서 드라이버를 만들 수 없습니다다음은 예외를 발생 코드의 NHibernate.Driver.SQLite20Driver
public Configuration GetConfiguration()
{
var persister = SQLiteConfiguration
.Standard
.UsingFile("Test.db")
.ShowSql();
var configuration = Fluently
.Configure()
.Database(persister)
.Mappings(map => map.FluentMappings.AddFromAssemblyOf<WordMap>())
.BuildConfiguration();
new SchemaExport(configuration).Execute(true, true, false);
return configuration;
}
전체 예외 텍스트 :
실패 : NHibernate.HibernateException : 드라이버를 만들 수 없습니다 from NHibernate.Driver.SQLite20Driver, NHibernate, 버전 = 2.1.2.4000, 문화 = 중립, PublicKeyToken = aa95f207798dfdb4.
----> System.Reflection.TargetInvocationException : 예외가 호출 대상에 의해 throw되었습니다.
----> NHibernate.HibernateException : 어셈블리 System.Data.SQLite의 IDbCommand 및 IDbConnection 구현을 찾을 수 없음 . System.Data.SQLite 어셈블리가 응용 프로그램 디렉터리 또는 전역 어셈블리 캐시에 에 있는지 확인하십시오. 어셈블리가 GAC에있는 경우 응용 프로그램 구성 파일의 요소를 사용하여 어셈블리의 전체 이름을 지정합니다. NHibernate에의
버전 System.Data.SQLite의 2.1.2.4000
버전 1.0.66.0
대상 프레임 워크 System.Data.SQLite 3.5 (86)
로컬 복사본이 설정되어입니다.
무엇이 잘못되었을 수 있습니까?
본 적이 있습니까? http://stackoverflow.com/questions/845490/fluentnhibernate-and-sqlite http://stackoverflow.com/questions/1460045/sql-data-sqllite-version-with-nhibernate-2-1 http : // stackoverflow.com/questions/1041271/how-to-configure-sqlite-to-run-with-nhibernate-where-assembly-resolves-system-dat –