DX Application Performance Management

TEC1573975: Getting the error: System.InvalidProgramException: Common Language Runtime detected an invalid program. 

May 25, 2016 06:03 PM

Author: DavidLewis

 

Document ID:  TEC1573975

Last Modified Date:  7/22/2015

  • Products
    • CA Application Performance Management
  • Releases
    • CA Application Performance Management:Release:8.0
    • CA Application Performance Management:Release:8.2
    • CA Application Performance Management:Release:9.07
    • CA Application Performance Management:Release:9.08
    • CA Application Performance Management:Release:9.1 SP2
    • CA Application Performance Management:Release:9.1.0
    • CA Application Performance Management:Release:9.1.1
    • CA Application Performance Management:Release:9.1.4
    • CA Application Performance Management:Release:9.1.5
    • CA Application Performance Management:Release:9.1.6
    • CA Application Performance Management:Release:9.1.7
    • CA Application Performance Management:Release:9.5
    • CA Application Performance Management:Release:9.5.1
    • CA Application Performance Management:Release:9.5.2
    • CA Application Performance Management:Release:9.5.3
    • CA Application Performance Management:Release:9.5.6
    • CA Application Performance Management:Release:9.6
    • CA Application Performance Management:Release:9.6.1
    • CA Application Performance Management:Release:9.7
    • CA Application Performance Management:Release:CA APM 9.5
    • CA Application Performance Management:Release:CA APM 9.6
    • CA Application Performance Management:Release:CA APM 9.7
    • CA Application Performance Management:Release:CA APM as a Service 1.2
    • CA Application Performance Management:Release:10.0
  • Components
    • APM AGENTS
    • INTROSCOPE
    • INTROSCOPE FOR MICROSOFT .NET
    • .NET AGENTS

 

 

 

Description:

When using Ninject (http://www.ninject.org/) in conjunction with the .NET Agent, you can receive an error similar to below:

 

[InvalidProgramException: Common Language Runtime detected an invalid program.]

   System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IRuntimeMethodInfo method) +0
   System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType) +38
   Ninject.Injection.DynamicMethodInjectorFactory.Create(ConstructorInfo constructor) +859
 

Solution:

The error is present in versions of Ninject released before August 2015. To fix the issue, download the latest version fromhttp://www.ninject.org/download.html.

There are no workarounds in agent configuration to help this, it requires modifications by the application developers.

 

 

 

Search the Entire CA APM Knowledge Base

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.