AppD Archive

.NET Runtime version 4.0.30319.1008 - Loading profiler failed.

CommunityUser
Splunk Employee
Splunk Employee

Hi all

We are getting the following error when deploying AppDynamcis Lite.

Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 1022
Date: 13/02/2014
Time: 12:22:34
User: NT AUTHORITY\NETWORK SERVICE
Computer: **********
Description:
.NET Runtime version 4.0.30319.1008 - Loading profiler failed. The profiler COM object was instantiated, but the profiler failed during its initialization callback. Profiler CLSID: 'AppDynamics.AgentProfiler'. HRESULT: 0x80070422. Process ID (decimal): 4604. Message ID: [0x2505].

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Event Type: Error
Event Source: .NET Runtime 4.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 13/02/2014
Time: 12:16:47
User: N/A
Computer: **********
Description:
EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 log4net, P5 1.2.11.0, P6 4e8de8f3, P7 3e7, P8 0, P9 system.security.verification, P10 NIL.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 63 00 6c 00 72 00 32 00 c.l.r.2.
0008: 30 00 72 00 33 00 2c 00 0.r.3.,.
0010: 20 00 77 00 33 00 77 00 .w.3.w.
0018: 70 00 2e 00 65 00 78 00 p...e.x.
0020: 65 00 2c 00 20 00 36 00 e.,. .6.
0028: 2e 00 30 00 2e 00 33 00 ..0...3.
0030: 37 00 39 00 30 00 2e 00 7.9.0...
0038: 33 00 39 00 35 00 39 00 3.9.5.9.
0040: 2c 00 20 00 34 00 35 00 ,. .4.5.
0048: 64 00 36 00 39 00 36 00 d.6.9.6.
0050: 38 00 65 00 2c 00 20 00 8.e.,. .
0058: 6c 00 6f 00 67 00 34 00 l.o.g.4.
0060: 6e 00 65 00 74 00 2c 00 n.e.t.,.
0068: 20 00 31 00 2e 00 32 00 .1...2.
0070: 2e 00 31 00 31 00 2e 00 ..1.1...
0078: 30 00 2c 00 20 00 34 00 0.,. .4.
0080: 65 00 38 00 64 00 65 00 e.8.d.e.
0088: 38 00 66 00 33 00 2c 00 8.f.3.,.
0090: 20 00 33 00 65 00 37 00 .3.e.7.
0098: 2c 00 20 00 30 00 2c 00 ,. .0.,.
00a0: 20 00 73 00 79 00 73 00 .s.y.s.
00a8: 74 00 65 00 6d 00 2e 00 t.e.m...
00b0: 73 00 65 00 63 00 75 00 s.e.c.u.
00b8: 72 00 69 00 74 00 79 00 r.i.t.y.
00c0: 2e 00 76 00 65 00 72 00 ..v.e.r.
00c8: 69 00 66 00 69 00 63 00 i.f.i.c.
00d0: 61 00 74 00 69 00 6f 00 a.t.i.o.
00d8: 6e 00 20 00 4e 00 49 00 n. .N.I.
00e0: 4c 00 0d 00 0a 00 L.....

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/516303***/Root/**********

Process ID: 5756

Exception: System.Security.VerificationException

Message: Operation could destabilize the runtime.

StackTrace: at log4net.Core.LogImpl.Error(Object message, Exception exception)
at PaymentWS.Report.Reporting.Monitoring()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

OS=Windows Server 2003 (Enterprise Edition)

Platform = VMware ESXi 5.0 U3 virtual machine

Memory=6GB

IIS Version = 6

ASP.NET Ver. = 4.0.30319

 

Effectively when we start AppDynamics Agent everything seems fine with calls coming in and the application works fine. However after 10 minutes , approx, the web site display unable to display page and the above errors are recorded. 

 

Stoping the service 'AppDynamics.Agent.Coordinator' bring the web page back to life.

 

Eager to continue testing this great lite tool but need to sovle this rather disappointing issue before proceeding. we are looking to roll out this product to a very large estate of IIS 6/7/8 web sites (excess over 250sites) however if we can resolve this issue we will have to look at alternatives. 😞

 

Look forward to your response (please feel free to email me as this testing is happening now.)

 

Regards

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Can you kindly attach the agent logs and event logs to the ticket. This is will help us troubleshoot this issue further.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Log files added as request. Event logs attached in original Post.

Thanks

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Could you please confirm are there any IIS reset or App pool recycle happened during this instrumentation.

Forward fresh set of logs files along with event logs when problem persists. Please let us know if there is any disconnect.

Thanks,

Santosh

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

NO. Also there are maybe in excess of 6 web sites being run from this test server and only one website fall foul of this issue.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi David,

This is a known issue, Can you try disabling log4net instrumentation and let us know if you are still seeing the issue.

Instruction provided below:

1.) Please add the following line into the "application.config" in the "C:\Program Files\AppDynamics\AppDynamics .NET Agent\Machine Agent\Configuration" directory. (C: or Install Directory)

Line to add:
<instrumentor name="log4netInstrumentor" disable="true"/>

Note: Add this line to the other instrumentor entries in the existing <instrumentation> section

2.) Save the changes

You need to restart the AppDynamics Agent Coordinator service and the instrumented processes (i.e App Agents).

Please let us know if you need any assistance in configuring above.

Regards
Gunjan.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...