Showing results for 
Show  only  | Search instead for 
Did you mean: 

.NET Core Linux SDK - FileNotFoundException AppDynamics.Agent.netstandard


Hi, I am using AppD and am trying to get it setup on a Linux server with ASP.NET Core 2.2.1
I can see in the logs that it configures the profiler correctly and starts the agent. I even see it in the dashboard.

[ERR] 2019-03-20 23:37:06.804117| INFO|agent| Logging configuration {
[ERR] 2019-03-20 23:37:06.804043| INFO|agent| Logging initialized
[ERR] 2019-03-20 23:37:06.805415| INFO|env| Node name: development_094fd57b-4230-412c-b9b7-a6b29a0b4216
[ERR] 2019-03-20 23:37:06.805393| INFO|env| Tier name: Delivery
[ERR] 2019-03-20 23:37:06.805372| INFO|env| Application name: XXXXXX_development
[ERR] 2019-03-20 23:37:06.805344| INFO|env| Running on OS: Linux (version #48~16.04.1-Ubuntu SMP Tue Jan 29 18:03:48 UTC 2019), CPU architecture x86_64
[ERR] 2019-03-20 23:37:06.805301| INFO|env| Instrumenting process 15 with working directory /home/vcap/app
[OUT] profiler(Info): .NET Agent ( starts successfully
[ERR] 2019-03-20 23:37:06.811805| INFO|agent| DotnetAgent starting libagent.
[ERR] 2019-03-20 23:37:06.811766| INFO|profiler| Finished registering agent properties.
[ERR] 2019-03-20 23:37:06.818384| INFO|ReJITManager| starting ReJITManager
[ERR] 2019-03-20 23:37:06.833197| INFO|profiler| agent dll not found, assembly load will not be injected
[ERR] 2019-03-20 23:37:06.842065| INFO|agent| Backend Config 2.0 support disabled, this agent will use legacy backend config
[ERR] 2019-03-20 23:37:06.841980| INFO|agent| Scheduling new config update request
[ERR] 2019-03-20 23:37:06.859035| INFO|httpclient| successfully loaded the default cert file (135 certificates)
[ERR] 2019-03-20 23:37:08.956356| INFO|agent| generating backend identification rules as no backend config received from controller
[ERR] 2019-03-20 23:37:08.956198| INFO|agent| New Business transaction _APPDYNAMICS_DEFAULT_TX_ of entry point type POCO known id 251453
[OUT] profiler(Info): Agent has registered on the platform using app:XXXXX_development/tier:Delivery/node:development_094fd57b-4230-412c-b9b7-a6b29a0b4216
[ERR] 2019-03-20 23:37:08.956838| INFO|agent| Initial config update completed

However, when it tries to instrument anything at all I get the following error.

[ERR] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
[ERR] at MongoDB.Driver.Core.Servers.HeartbeatDelay.TimerCallback(Object state)
[ERR] at System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result)
[ERR] at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
[ERR] at System.Threading.Tasks.Task.FinishContinuations()
[ERR] at System.Threading.ThreadPoolWorkQueue.Dispatch()System.IO.FileNotFoundException: Could not load file or assembly 'AppDynamics.Agent.netstandard, Version=, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
[ERR] Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'AppDynamics.Agent.netstandard, Version=, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
[ERR] Unhandled Exception:

This also crashes my application and causes an automatic restart.