tengo problema con esta excepción:NHibernate + SqlServerCe
Hibernate.HibernateException : Could not create the driver from Hibernate.Driver.SqlServerCeDriver.
----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
----> NHibernate.HibernateException : The IDbCommand and IDbConnection implementation in the ssembly System.Data.SqlServerCe could not be found. Ensure that the assembly System.Data.SqlServerCe is located in the application directory or in the Global Assembly Cache. If the assembly is in the GAC, use <qualifyAssembly/> element in the application configuration file to specify the full name of the assembly.
he intentado todo. Busqué en Google mucho.
System.Data.SqlServerCe.dll está en el directorio de depuración. Se hace referencia local, no es GAC. He copiado el conjunto local verdadero. En el directorio de depuración está todo lo demás necesario sql * .dll. Intenté la compilación x86 pero no mucho.
Ésta es mi nhibernate config:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name='proxyfactory.factory_class'>NHibernate.ByteCode.Spring.ProxyFactoryFactory, NHibernate.ByteCode.Spring</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="dialect">NHibernate.Dialect.MsSqlCeDialect</property>
<property name="connection.driver_class">NHibernate.Driver.SqlServerCeDriver</property>
<property name="show_sql">true</property>
<!-- mapping files -->
</session-factory>
</hibernate-configuration>
versión NHibernate 3.0 beta 1, versión SqlServerCe 3.5 SP1
Mi idea: Nhibernate todavía se ven en la GAC, lástima pues un habían instalado SqlServerCe, después de desinstalar el el problema comienza ¿Cómo puedo decirle a NHibernate: "por favor, mira tomar este dll?" :)
Podría traducir 'Cíl vyvolání způsobil výjimku.'? –
Lo siento :) Se me olvida. Corregido – Simon