Error after upgrading Microsoft.BingAds.SDK to 13.0.18 due to a Falcon compliance team alert
After upgrading Microsoft.BingAds.SDK from 13.0.11 to 13.0.18 due to a Falcon compliance team alert, we encountered an error when creating a new ServiceClient<ICustomerManagementService>
in our code.
The exception thrown is like:
Message: The type initializer for 'Microsoft.BingAds.RestServiceClient' threw an exception.
InnerException Message: Could not load file or assembly 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified. InnerException StackTrace: at Microsoft.BingAds.RestServiceClient..ctor(AuthorizationData authorizationData, Nullable1 environment) at Microsoft.BingAds.ServiceClient
1..ctor(AuthorizationData authorizationData, Nullable`1 environment)
What is the solution to resolve this issue?