title: Method not found: 'Newtonsoft.Json.JsonSerializerSettings Microsoft.AspNet.Mvc.MvcJsonOptions.get_SerializerSettings()'
body: <p>Locally my project runs fine but when I deploy on Azure using a web app, I get the following error when it starts:</p>
  
  <p>MissingMethodException: Method not found: 'Newtonsoft.Json.JsonSerializerSettings Microsoft.AspNet.Mvc.Formatters.JsonOutputFormatter.get_SerializerSettings()'.
  SmartAdmin.Startup.&lt;>c.b__13_7(MvcOptions options)</p>
  
  <p>I've tried this:</p>
  
  <pre><code>services.AddMvc(options =&gt;
          {
                  options.Filters.Add(new UserPreferencesLoaderAtrribute());
                  var jsonFormatter = (JsonOutputFormatter)options.OutputFormatters.FirstOrDefault(f =&gt; f is JsonOutputFormatter);
                  if (jsonFormatter != null)
                  {
                  jsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
              }
          });
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>services.AddMvc(options =&gt;
          {
              options.Filters.Add(new UserPreferencesLoaderAtrribute());
  
          }).AddJsonOptions(options =&gt;
          {
              options.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
          });
  </code></pre>