Exception of type 'System.ExecutionEngineException' was thrown.

354 views
Skip to first unread message

Roberto

unread,
Sep 9, 2009, 6:15:55 AM9/9/09
to nhprof
Hi,

i'm trying NHProf (on vs2010 with or without debug), i tried with
unit test and a console too,
when i try some queries i get:

Exception of type 'System.ExecutionEngineException' was thrown.

if I remove NHprof initializer, the program work correctly,




Windows Vista 64bit
NHprof as administrator
Visual studio 2010 beta1 as administrator

Roberto

unread,
Sep 9, 2009, 7:28:06 AM9/9/09
to nhprof
I tried a new project with visual studio 2008. .net framework 3.5
(before was 4.0 I forgot of mention it)
and NHprof is working perfect.

So now I have to try Visual studio 2010 .net framework 3.5 (instead
of 4.0)

Ayende Rahien

unread,
Sep 9, 2009, 7:36:06 AM9/9/09
to nhp...@googlegroups.com
Okay...
That is not good.
Can you send me your test project?

Roberto

unread,
Sep 9, 2009, 7:47:24 AM9/9/09
to nhprof
Ok, I think I got where the problem is:

if project is compiled on .net framework 4.0

The runtime has encountered a fatal error. The address of the error
was at 0xf46792ed, on thread 0x1bb0. 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.

and then:

Exception of type 'System.ExecutionEngineException' was thrown.


if project is compiled on .net framework 3.5
is work with Visual Studio 2008 and 2010 too



yes of course, i'm clearing up connectionstrings


and thanks for the rapid response!!

Ayende Rahien

unread,
Sep 9, 2009, 7:52:22 AM9/9/09
to nhp...@googlegroups.com
Okay, thank you.
Are you doing _anything_ special except using 4.0?

Roberto

unread,
Sep 9, 2009, 8:01:35 AM9/9/09
to nhprof
this is the file
http://groups.google.com/group/nhprof/web/NHProfTest%20vs2008%20_%20vs2010.zip

i don't think that i'm doing anything special. :) i hope.

Ayende Rahien

unread,
Sep 9, 2009, 8:06:24 AM9/9/09
to nhp...@googlegroups.com
Thank you, it will take me a few hours to setup a testing environment for 4.0
If this is truly a case of working in 3.5 and not working in 4.0, that is a serious regression in the framework.
Can you give me more details about your system?
x86 or x64 ?
XP, Vista, Win7 ?

Roberto

unread,
Sep 9, 2009, 8:17:13 AM9/9/09
to nhprof
could be that when nhprof try to load an assembly 4.0, can't load it?

in my experience when I try to load an 4.0 assembly with a 3.5
software I got an error (can't load assembly ... )


Windows Vista x64
with both Vs2010 and NHProf running as administrator

Frameworks installed:
2.0, 3.0, 3.5, 4.0


On 9 Set, 14:06, Ayende Rahien <aye...@ayende.com> wrote:
> Thank you, it will take me a few hours to setup a testing environment for
> 4.0If this is truly a case of working in 3.5 and not working in 4.0, that is
> a serious regression in the framework.
> Can you give me more details about your system?
> x86 or x64 ?
> XP, Vista, Win7 ?
>
>
>
> On Wed, Sep 9, 2009 at 3:01 PM, Roberto <roberto.masc...@gmail.com> wrote:
>
> > this is the file
>
> >http://groups.google.com/group/nhprof/web/NHProfTest%20vs2008%20_%20v...

Roberto

unread,
Sep 9, 2009, 8:23:51 AM9/9/09
to nhprof
sorry i forgot db script, if you need that I could send it too,
else there is a mapping xml file so you could produce it

Ayende Rahien

unread,
Sep 9, 2009, 8:24:42 AM9/9/09
to nhp...@googlegroups.com
You would get a different error then, not this one.
The problem that I have is that I am not DOING anything there that could conceivably cause this.

Ayende Rahien

unread,
Sep 12, 2009, 1:49:59 PM9/12/09
to nhp...@googlegroups.com
There are some level of nastiness that should not be afflicted on one during the weekend.
I tracked down the problem, it is something that requires so many things to go just wrong enough to happen that it is freaky.
I can confirm this to be a CLR bug that will most probably be fixed in beta 2
Build 441 should fix the issue.

Roberto

unread,
Sep 24, 2009, 3:46:52 AM9/24/09
to nhprof
oh, great work Ayende!!

i'll try soon, to check build 441
thanks

On 12 Set, 19:49, Ayende Rahien <aye...@ayende.com> wrote:
> There are some level of nastiness that should not be afflicted on one during
> the weekend.
> I tracked down the problem, it is something that requires so many things to
> go just wrong enough to happen that it is freaky.
> I can confirm this to be a CLR bug that will most probably be fixed in beta
> 2
> Build 441 should fix the issue.
>
>
>
> On Wed, Sep 9, 2009 at 3:24 PM, Ayende Rahien <aye...@ayende.com> wrote:
> > You would get a different error then, not this one.The problem that I have
> > is that I am not DOING anything there that could conceivably cause this.
>

Roberto

unread,
Sep 24, 2009, 3:51:13 AM9/24/09
to nhprof
yes, I confirm, with my tests it's work

very thanks!!! :)

On 12 Set, 19:49, Ayende Rahien <aye...@ayende.com> wrote:
> There are some level of nastiness that should not be afflicted on one during
> the weekend.
> I tracked down the problem, it is something that requires so many things to
> go just wrong enough to happen that it is freaky.
> I can confirm this to be a CLR bug that will most probably be fixed in beta
> 2
> Build 441 should fix the issue.
>
>
>
> On Wed, Sep 9, 2009 at 3:24 PM, Ayende Rahien <aye...@ayende.com> wrote:
> > You would get a different error then, not this one.The problem that I have
> > is that I am not DOING anything there that could conceivably cause this.
>
Reply all
Reply to author
Forward
0 new messages