%3CLINGO-SUB%20id%3D%22lingo-sub-1607926%22%20slang%3D%22en-US%22%3EBad%20method%20token%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1607926%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20are%20using%20AppDynamics%204.5.17%20or%20a%20lower%20version%20and%20the%20application%20is%20displaying%20%E2%80%9C%3CSTRONG%3EBadImageFormatException%3A%20Bad%20method%20token%3C%2FSTRONG%3E%E2%80%9D%20error%2C%20please%20update%20your%20AppDynamics.%20There%20is%20a%20known%20issue%20with%204.5.17%20and%20lower%20versions.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Nedim_0-1598275612483.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214317i04C90421FE610669%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Nedim_0-1598275612483.jpeg%22%20alt%3D%22Nedim_0-1598275612483.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20issue%20occurs%20intermittently.%20IIS%20reset%20temporarily%20solves%20it.%20In%20the%20case%20I%20worked%20on%2C%20it%20was%20happening%20on%20all%20IIS%20servers.%20There%20were%20not%20any%20recent%20Windows%20updates%20or%20code%20deployments.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1224912562%22%20id%3D%22toc-hId-1224912595%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--582541901%22%20id%3D%22toc-hId--582541868%22%3ESolution%3C%2FH3%3E%0A%3CP%3ECertain%20versions%20of%20AppDynamics%20causes%20application%20crash.%20This%20known%20issue%20is%20reported%20in%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.appdynamics.com%252Fdisplay%252FPRO45%252F4.5.x%252BResolved%252BIssues%252Bby%252BMonth%26amp%3Bdata%3D02%257C01%257CNedim.Sahin%2540microsoft.com%257Cc6969801c773415b008c08d848310358%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637338722629816064%26amp%3Bsdata%3Dxly51ionsE24MtlZ%252F0JlVSlRtuYauQ7nUL43X12hNSU%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Etheir%20documentation%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Nedim_1-1598275612500.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214316iAFC07E37FFC2DFAE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Nedim_1-1598275612500.png%22%20alt%3D%22Nedim_1-1598275612500.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20collect%20a%20dump%20file%20to%20make%20sure%20the%20issue%20is%20caused%20by%20AppDynamics.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1607926%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20is%20a%20known%20issue%20with%204.5.17%20and%20lower%20versions%20that%20cause%20%22Bad%20method%20token%22%20error%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft

If you are using AppDynamics 4.5.17 or a lower version and the application is displaying “BadImageFormatException: Bad method token” error, please update your AppDynamics. There is a known issue with 4.5.17 and lower versions.

 

Nedim_0-1598275612483.jpeg

 

This issue occurs intermittently. IIS reset temporarily solves it. In the case I worked on, it was happening on all IIS servers. There were not any recent Windows updates or code deployments.

 

Solution

Certain versions of AppDynamics causes application crash. This known issue is reported in their documentation.

Nedim_1-1598275612500.png

 

You can also collect a dump file to make sure the issue is caused by AppDynamics.