| 
					
						 Hi.
 
 My sample test application, ok for NHIbernate 1.0.4 (Mono and NET, Sql Server and Oracle), raise error using NHIbernate 1.2.0 (Mono - Sql Server); others test on 1.2.0 (Mono-Oracle, .Net-Sql Server, .Net-Oracle) is ok
 
 Error (form log4net log) is ********************
 DEBUG [1056] (:0) - Obtaining IDbConnection from Driver
 DEBUG [1056] (:0) - SQL Exception
 System.ArgumentException: An invalid argument was specified.
   at System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.set_Transaction (IDbTransaction value) [0x00000]
   at NHibernate.Transaction.AdoTransaction.Enlist (IDbCommand command) [0x00000]
   at NHibernate.Impl.BatcherImpl.Prepare (IDbCommand cmd) [0x00000]
   at NHibernate.Impl.BatcherImpl.ExecuteReader (IDbCommand cmd) [0x00000]
   at NHibernate.Loader.Loader.GetResultSet (IDbCommand st, NHibernate.Engine.RowSelection selection, ISessionImplementor session) [0x00000]
 
 Mapping file is *********************
 <?xml version="1.0" encoding="utf-8"?>
 <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="property">
 	<class name="test.ClasseBase, PerformanceDominio" 
   table="ClasseBase" 
   mutable="true" 
   lazy="true">
 		<id name="Intero" column="Intero" type="Int32">
 					<generator class="assigned" ></generator>
 		</id>
 
     <property name="Booleano" type="Boolean"/>
     <property name="Decimale" type="Decimal"/>
     <property name="Data" type="DateTime"/>
 	<property name="Stringa" type="String(255)"/>    
 </class>			
 </hibernate-mapping>
 
 Configuration file is *********************
 <hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2">
 	<session-factory>
 		<!-- properties -->
 		<property name="hibernate.connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
 		<property name="hibernate.connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
 		<property name="hibernate.connection.connection_string">Server=xxxx;initial catalog=xxxx;User ID=xxxx;Password=xxxx</property>
 		<property name="hibernate.show_sql">false</property>
 		<property name="hibernate.dialect">NHibernate.Dialect.MsSql2000Dialect</property>
 		<property name="hibernate.use_outer_join">true</property>
 		<property name="hibernate.query.substitutions">true 1, false 0, yes 1, no 0</property>
 		
 	</session-factory>
 	
 </hibernate-configuration>
 
 Db server is Sql Server 2000.
 Mono is 1.2.4 version.
 NHibernate is 1.2.0.
 
 What's wrong? 
					
  
						
					 |