Splunk AppDynamics

.Net core alpine linux image throwing Microsoft.AspNetCore.Server.Kestrel (System.AggregateException)

Sham_Sharma
New Member

Hi Team, 

We are using appd .net core Linux alpine image 20.7.0 image for our .net core 3.1 application and trying to deploy appdynamics with it. 

For .net applications that are using kestrel service are giving exception when Appd agent is getting started. 

Unhandled exception while processing 0HM4SAP0EPM6O.

Category Name: Microsoft.AspNetCore.Server.Kestrel

Stack Trace

System.AggregateException:

   at Microsoft.Extensions.Logging.Logger.ThrowLoggingError (Microsoft.Extensions.Logging, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at Microsoft.Extensions.Logging.Logger.Log (Microsoft.Extensions.Logging, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelTrace.Log (Microsoft.AspNetCore.Server.Kestrel.Core, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at Microsoft.Extensions.Logging.LoggerExtensions.Log (Microsoft.Extensions.Logging.Abstractions, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at Microsoft.Extensions.Logging.LoggerExtensions.LogCritical (Microsoft.Extensions.Logging.Abstractions, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection+<ProcessRequestsAsync>d__12`1.MoveNext (Microsoft.AspNetCore.Server.Kestrel.Core, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.ConnectionLimitMiddleware+<OnConnectionAsync>d__5.MoveNext (Microsoft.AspNetCore.Server.Kestrel.Core, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection+<ExecuteAsync>d__32.MoveNext (Microsoft.AspNetCore.Server.Kestrel.Core, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

Inner exception System.InvalidProgramException handled at Microsoft.Extensions.Logging.Logger.ThrowLoggingError:

   at HoneywellEOM.ModelRegistry.Utils.LoggerScopeLogger.Log (HoneywellEOM.ModelRegistry.Util, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)

   at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|12_0 (Microsoft.Extensions.Logging, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

we have also raised a ticket with AppD support: https://help.appdynamics.com/hc/en-us/requests/264921?page=1  

AppD dot net configs we are using 

ASPNETCORE_URLS: "http://*:5000"
CORECLR_ENABLE_PROFILING: "1"
CORECLR_PROFILER: "{57e1aa68-2229-41aa-9931-a6e93bbc64d8}"
CORECLR_PROFILER_PATH: "/opt/appdynamics/dotnet/libappdprofiler.so"
LD_LIBRARY_PATH: "/opt/appdynamics/dotnet"

@Anonymous can you help?

^ Edited by @Ryan.Paredez for readability and removing an email address. Please do not share your or others email addresses in community posts for security and privacy reasons

Labels (1)
Tags (2)
0 Karma

Sham_Sharma
New Member

@Anonymous  I read your blog on dot net core AppD, a good read !! Could you help us out here or someone from your team? 
I have raised a ticket as well or this https://help.appdynamics.com/hc/en-us/requests/264921?page=1  

@Anonymous - Kindly help 

0 Karma

iamryan
Community Manager
Community Manager

Hi @Sham.Sharma,

Since you have created a support ticket, please work with the support team on this issue. Can you please share the learnings and outcomes from the support ticket back on this post, please. This community is all about knowledge sharing. What you learn can help the next person.

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...