Red Gate forums :: View topic - Common Language Runtime detected an invalid program
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 7
ANTS Performance Profiler 7 forum

Common Language Runtime detected an invalid program

Search in ANTS Performance Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
coallen



Joined: 18 Jan 2013
Posts: 2

PostPosted: Mon Apr 01, 2013 9:16 pm    Post subject: Common Language Runtime detected an invalid program Reply with quote

Hi,

I've read through the various other posts regarding similar problems but none of the fixes/work-arounds seem to apply. I am able to run ANTS Memory Profiler without any issue but when I try to run the Performance Profiler, I get the following error:

Common Language Runtime detected an invalid program.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidProgramException: Common Language Runtime detected an invalid program.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidProgramException: Common Language Runtime detected an invalid program.]
System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +0
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +428




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.547

Any possible solutions/work-arounds?
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 229

PostPosted: Tue Apr 02, 2013 11:13 pm    Post subject: Reply with quote

Hi there,

Thanks for you post!

You should be able to work around this if you lessen the instrumentation used in profiling (the memory profiler does not instrument)--are you able to profile successfully if you use method level timings or sampling mode?

Also, have you been able to try profiling on another machine?
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
coallen



Joined: 18 Jan 2013
Posts: 2

PostPosted: Wed Apr 03, 2013 10:33 pm    Post subject: Reply with quote

If I change the profiling mode to "Sample method-level timings (fastest, least detail, no hit counts)" then profiling does work. However, not much detail is provided. Any idea as to how I can get one of the other, more detailed methods to work?
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 229

PostPosted: Thu Apr 04, 2013 5:07 pm    Post subject: Reply with quote

Ah okay, it's good to hear that sampling at least works!

I think you may have already read about how certain security updates have caused similar errors recently. May I ask what operating system you are running? The update KB2742596 was causing problems on Windows XP and Windows Server but you can also find it's equivalent on other OS's here: http://technet.microsoft.com/en-us/security/bulletin/ms13-004

Could you kindly check if you have that update or it's equivalent installed and try uininstalling it?
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group