title: The type initializer for 'Google.Apis.Json.NewtonsoftJsonSerializer' threw an exception
body: <p>I am accessing google analytics data using Oauth 2. When I try to execute the following code, this error occurs: </p>
  
  <blockquote>
    <p>The type initializer for <code>'Google.Apis.Json.NewtonsoftJsonSerializer'</code>
    threw an exception.</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>string clientid = "my client id";
  string clientsecret = "my client secret";
  
  var client = new WebServerClient(GoogleAuthenticationServer.Description, clientid, clientsecret);
  
  var auth = new OAuth2Authenticator&lt;WebServerClient&gt;(client, Authenticate);
  
  var asv = new Google.Apis.Analytics.v3.AnalyticsService(new BaseClientService.Initializer()
  {
      Authenticator = auth,
  });
  
  var request = asv.Data.Ga.Get("ga:" + "my ProfileID", "2012-01-01", "2012-02-20", "ga:visits");
  var report = request.Fetch();
  
  private IAuthorizationState Authenticate(WebServerClient client)
  {
      IAuthorizationState state = new AuthorizationState(new string[] {}) { RefreshToken = "my refresh token" };
      client.RefreshToken(state);
      return state;
  }
  </code></pre>