If you are using AppDynamics version 4.5.17 or lower and receiving “BadImageFormatException: Bad method token” error while trying to access your application hosted on IIS, please update your AppDynamics to mitigate a known issue.
It occurs intermittently and IIS reset temporarily solves it. In the case I worked on, it was happening on both IIS servers (Windows Server 2016). There were not any recent Windows updates or code deployments.
Solution for BadImageFormatException: Bad method token error
This issue in AppDynamics that causes the application crash reported in their documentation.
You can also collect a dump file to make sure the issue is caused by AppDynamics.
Please note that BadImageFormatException generally occurs because of using a library with processor architecture (32-bit, 64-bit) that is different than what the application pool is expecting. Here is a similar issue and how to solve it: Attempt to load Oracle client libraries threw BadImageFormatException
2 thoughts on “BadImageFormatException: Bad method token”
thanks hope it works and thanks for the given informaiton.
this will help us a lot and i thanks you.