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() ):

The runtime has encountered a fatal error. The address of the error
was at 0x5b425ad7, on thread 0x1064. The error code is 0xc0000005.
This error may 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 <bogeape...@gmail.com> 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 this error
> when upgrading a project.
>
> Gabriel.
>
> On Apr 29, 7:19 am, graphicsxp <graphic...@googlemail.com> wrote:
>
>
>
>
>
> > Humm...yes, you are right, this error message 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 <rob...@rpowered.net> 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 the runtime in 4.0.
>
> > > - Robert
>
> > > On Wed, Apr 28, 2010 at 5:23 PM, Craig van Nieuwkerk 
> > > <crai...@gmail.com>wrote:
>
> > > > I am not sure of your error, 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 <graphic...@googlemail.com>
> > > > wrote:
> > > > > Hi,
>
> > > > > I've upgraded my .net 3.5 project to .net 4.0. All is fine at compile
> > > > > time but I get a runtime exception 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 nhus...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > nhusers+unsubscr...@googlegroups.com<nhusers%2bunsubscr...@googlegroups.com
> > > >  >
> > > > .
> > > > > 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 nhus...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > nhusers+unsubscr...@googlegroups.com<nhusers%2bunsubscr...@googlegroups.com
> > > >  >
> > > > .
> > > > 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 nhus...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > nhusers+unsubscr...@googlegroups.com.
> > > 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 nhus...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > nhusers+unsubscr...@googlegroups.com.
> > 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 nhus...@googlegroups.com.
> To unsubscribe from this group, send email to 
> nhusers+unsubscr...@googlegroups.com.
> 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 nhus...@googlegroups.com.
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to