cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

NET (Agent, Installation)

AppDynamics - application using StackExchange.Redis crashes

AppDynamics - application using StackExchange.Redis crashes

Hello,

Summary

After installing AppDynamics .NET Agent on the same nodes as our wcf services we started to receive lots of exceptions on application start.

How to reproduce
Exceptions are occurring on AppPool startup (basically each time when we do deployment).


Additional info

Here is a snippet of the StackTrace

Exception:
  Type:    System.InvalidProgramException
  Message: Common Language Runtime detected an invalid program.
  Source:  StackExchange.Redis
  Stack Trace: 
   at StackExchange.Redis.ConnectionMultiplexer.ExecuteAsyncImpl[T](Message message, ResultProcessor`1 processor, Object state, ServerEndPoint server)
   at StackExchange.Redis.RedisBase.ExecuteAsync[T](Message message, ResultProcessor`1 processor, ServerEndPoint server)
   at StackExchange.Redis.RedisDatabase.KeyDeleteAsync(RedisKey[] keys, CommandFlags flags)
   ....

 

Findings
Initially we thought the problem lies within this StackExchange.Redis NuGet as we were using old version which was using some IL code etc.
https://github.com/StackExchange/StackExchange.Redis/issues/904
We've updated our version to their latest in which they don't use any IL code, but issue continues to persist.
I've come across to the  following document - https://docs.appdynamics.com/display/PAA/Support+Advisory%3A+Applications+using+NewtonSoft.Json+may+...

It seems the InvalidProgramException was happening for NewtonSoft.Json NuGet and I'm wondering whether we are not falling under similar case for StackExchange.Redis NuGet?

 

Does someone faced similar error? 

Can you advice on how to resolve this?

 

Environment
.NET Agent version we are using is 4.5.18.4160

.NET Framework is v4.7.2

 

Thanks for assistance in advance.

By replying you agree to the Terms and Conditions of the AppDynamics Community.
AppDynamics - application using StackExchange.Redis crashes