MFA Agent 2.1.x Online Authentication Test Fails with Error: "The type initializer for 'Newtonsoft.Json.JsonWriter' threw an exception."
Article Number
Applies To
RSA Product/Service Type: MFA Agent for Microsoft Windows
Issue
"Exception: System.TypeInitializationException: The type initializer for 'Newtonsoft.Json.JsonWriter' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Newtonsoft.Json.Utilities.ConvertUtils' threw an exception. ---> System.BadImageFormatException: Could not load file or assembly 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The module was expected to contain an assembly manifest."
The Windows Event Viewer logs for the MFA Agent application shows error:
"The type initializer for 'Newtonsoft.Json.JsonWriter threw an exception."
Cause
Resolution
2. Restart the Windows machine.
3. Test online authentication.
Related Articles
MFA Agent Test Authentication fails with error ServerConnectionFailed 217Number of Views RSA Error "Offline Authentication is not enabled or not available" in MFA agent 520Number of Views Windows Password Integration (WPI) fails for the RSA MFA Agent for Microsoft Windows with error "JWT token has expired" 459Number of Views Enable a web proxy for RSA MFA Agent for Microsoft Windows 442Number of Views RSA MFA Agent for Microsoft Windows failed to download offline days 294Number of Views
Trending Articles
How to recover the Application and AFX after an unexpected database failure in RSA Identity Governance & Lifecycle Troubleshooting AFX Connector issues in RSA Identity Governance & Lifecycle RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide RSA Release Notes for RSA Authentication Manager 8.8 RSA Authentication Manager 8.9 Release Notes (January 2026)
Don't see what you're looking for?