對不起,我再次發佈此問題。我搜索了它,發現了很多帖子和線程在stackoverflow和其他人,但沒有人爲我而戰。
我運行我的Windows窗體應用程序時出現此錯誤消息。 這是我App.config文件:無法從NHibernate.Driver.SQLiteDriver創建驅動程序
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
</configSections>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory name="NHibernate.Test">
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SQLiteDriver</property>
<property name="connection.connection_string">
Data Source=nhibernate.db;Version=3;New=True;
</property>
<property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
<property name="query.substitutions">true=1;false=0</property>
<property name="proxyfactory.factory_class">
NHibernate.ByteCode.LinFu.ProxyFactoryFactory,NHibernate.ByteCode.LinFu
</property>
</session-factory>
</hibernate-configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
我使用Visual Studio 2010和Windows Server 2008 R2 64位上。 我的項目配置是X86,我嘗試了System.Data.SQLite.dll文件的x86,x64和ManagedOnly版本,但似乎沒有任何工作。
任何人都可以幫助我嗎?
P.S:我知道這裏有類似的線索,但請不要關閉此線程,因爲沒有任何解決方案適用於我。
謝謝。
你得到什麼錯誤?你能發佈Exception和Stacktrace嗎? – 2011-03-04 09:28:54