Hey Michael, I was wondering if you had made progress on this ? Did you manage to get your project working with .net 4 ?
Ta On 5 mai, 08:34, graphicsxp <[email protected]> wrote: > Good to hear I'm not the only one having this issue.... > > I've tried to upgrade NH to .net, but I've given up. I had too many > errors, mostly due to the new ISet interface in the .net framework. > > I believe that all I need is the website to be in .net 4, and I > shouldn't have to upgrade the other projects. > > Let us know if you solve your issue ! > > On 5 mai, 07:16, Michael Hedgpeth <[email protected]> wrote: > > > > > I am having the same issue. All of my assemblies are on .NET 4.0, but > > are referencing assemblies that are compiled as .NET 2.0 (including > > NHibernate). > > > The error I'm getting also happens on the BeginTransaction() call. > > > I'm guessing this has something to do with my configuration, so here > > it is: > > > <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> > > <session-factory> > > <!-- properties --> > > <property > > name="connection.provider">NHibernate.Connection.DriverConnectionProvider</ > > property> > > <property > > name="connection.driver_class">NHibernate.Driver.SqlClientDriver</ > > property> > > <property name="connection.connection_string">goes here</ > > property> > > <property > > name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, > > NHibernate.ByteCode.LinFu</property> > > <property name="show_sql">true</property> > > <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</ > > property> > > <property name="use_outer_join">true</property> > > <property name="adonet.batch_size">25</property> > > <property name ="command_timeout">200</property> > > <property name ="generate_statistics">true</property> > > </session-factory> > > </hibernate-configuration> > > > On Apr 29, 2:58 pm, graphicsxp <[email protected]> wrote: > > > > A little bit more information : If I test my DataAccess Layer project > > > using Unit Tests instead of my website, then I get this exception > > > (still when calling BeginTransaction() ): > > > > Theruntimehas encountered afatalerror. The address of theerror > > > was at 0x5b425ad7, on thread 0x1064. Theerrorcode is 0xc0000005. > > > Thiserrormay be a bug in the CLR or in the unsafe or non-verifiable > > > portions of user code. Common sources of this bug include user > > > marshaling errors for COM-interop or PInvoke, which may corrupt the > > > stack. > > > > Note that if I don't use a transaction, I will get the same exception > > > anyway when NH executes a query. > > > > Any clue ? > > > > On 29 avr, 14:46, Gabriel Bogéa Perez <[email protected]> wrote: > > > > > You may also check if your target framework is not set to .NET 4 > > > > Client Profile, if it is try changing it to .NET 4. I got thiserror > > > > when upgrading a project. > > > > > Gabriel. > > > > > On Apr 29, 7:19 am, graphicsxp <[email protected]> wrote: > > > > > > Humm...yes, you are right, thiserrormessage is obsolete. > > > > > > My website is in .net 4.0, but my DAL project is still in .net 3.5 > > > > > because I didn't want to fix all the errors related to the new ISet > > > > > interface being ambitious with the IESI ISet. Maybe I should change > > > > > that project to use .net 4.0 as well, that's probably the source of my > > > > > problem > > > > > > thanks > > > > > > On Apr 29, 9:06 am, Robert Rudduck <[email protected]> wrote: > > > > > > > Are you sure you are in 4.0 or have 4.0 installed on the machine its > > > > > > running? > > > > > > > According > > > > > > tohttp://msdn.microsoft.com/en-us/library/system.executionengineexcepti... > > > > > > that > > > > > > exception is no longer thrown by theruntimein 4.0. > > > > > > > - Robert > > > > > > > On Wed, Apr 28, 2010 at 5:23 PM, Craig van Nieuwkerk > > > > > > <[email protected]>wrote: > > > > > > > > I am not sure of yourerror, but my web sitewww.baseestate.comhas > > > > > > > been upgraded to .NET4 and is using NHibernate with no problems. > > > > > > > > Craig. > > > > > > > > On Thu, Apr 29, 2010 at 4:10 AM, graphicsxp > > > > > > > <[email protected]> > > > > > > > wrote: > > > > > > > > Hi, > > > > > > > > > I've upgraded my .net 3.5 project to .net 4.0. All is fine at > > > > > > > > compile > > > > > > > > time but I get aruntimeexception when calling > > > > > > > > _sessionFactory.GetCurrentSession().BeginTransaction(). > > > > > > > > > {"Exception of type 'System.ExecutionEngineException' was > > > > > > > > thrown."} > > > > > > > > > There is no other information. No stack, no inner exception. > > > > > > > > Very > > > > > > > > frustrating. > > > > > > > > > Has someone got an idea what could go wrong with NH and .Net > > > > > > > > 4.0 ? > > > > > > > > > Thanks > > > > > > > > > -- > > > > > > > > You received this message because you are subscribed to the > > > > > > > > Google Groups > > > > > > > "nhusers" group. > > > > > > > > To post to this group, send email to [email protected]. > > > > > > > > To unsubscribe from this group, send email to > > > > > > > [email protected]<nhusers%[email protected] > > > > > > > > > > > > > > > . > > > > > > > > For more options, visit this group at > > > > > > >http://groups.google.com/group/nhusers?hl=en. > > > > > > > > -- > > > > > > > You received this message because you are subscribed to the > > > > > > > Google Groups > > > > > > > "nhusers" group. > > > > > > > To post to this group, send email to [email protected]. > > > > > > > To unsubscribe from this group, send email to > > > > > > > [email protected]<nhusers%[email protected] > > > > > > > > > > > > > > > . > > > > > > > For more options, visit this group at > > > > > > >http://groups.google.com/group/nhusers?hl=en. > > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > > > > > > Groups "nhusers" group. > > > > > > To post to this group, send email to [email protected]. > > > > > > To unsubscribe from this group, send email to > > > > > > [email protected]. > > > > > > For more options, visit this group > > > > > > athttp://groups.google.com/group/nhusers?hl=en. > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > > Groups "nhusers" group. > > > > > To post to this group, send email to [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]. > > > > > For more options, visit this group > > > > > athttp://groups.google.com/group/nhusers?hl=en. > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "nhusers" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]. > > > > For more options, visit this group > > > > athttp://groups.google.com/group/nhusers?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "nhusers" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group > > > athttp://groups.google.com/group/nhusers?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "nhusers" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/nhusers?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/nhusers?hl=en. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
