对不起,我再次发布此问题。我搜索了它,发现了很多帖子和线程在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