title: ASP.NET Core RC2 Configure Custom AppSettings
body: <p>Say I put the settings below in appsettings.json.</p>
  
  <pre><code>"MySettings": {
      "SmtpHost": "smtp.mydomain.com"",
      "WebService": "http://localhost:1337"
  }
  </code></pre>
  
  <p>And I have the class below to hold those settings.</p>
  
  <pre><code>public class MySettings
  {
      public string SmtpHost{ get; set; }
      public string WebService{ get; set; }
  }
  </code></pre>
  
  <p>With RC1 I would use the line of code below in the ConfigureServices() method to load those configuration settings.</p>
  
  <pre><code>services.Configure&lt;MySettings&gt;(Configuration.GetSection("MySettings"));
  </code></pre>
  
  <p>But in RC2 that same line of code gives me this error</p>
  
  <blockquote>
    <p>Cannot convert from
    'MicrosoftExtensions.Configuration.IConfigurationSection' to
    'System.Action<code>&lt;MySettings&gt;</code>'.</p>
  </blockquote>