title: Unable to resolve service for type Microsoft Extensions Configuration IConfiguration
body: <p>I am getting this error, could not understand for the life of me. </p>
  
  <p><strong>Unable to resolve service for type 'Microsoft.Extensions.Configuration.IConfiguration' while attempting to activate 'Microsoft.FeatureManagement.ConfigurationFeatureSettingsProvider'.</strong></p>
  
  <p>This is a simple .net core 2.2 console app, with the following nuget packages added.</p>
  
  <ol>
  <li><a href="https://www.nuget.org/packages/Microsoft.Extensions.Configuration.Json/2.1.1" rel="noreferrer">Microsoft.Extensions.Configuration.Json</a></li>
  <li><a href="https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection/2.1.1" rel="noreferrer">Microsoft.Extensions.DependencyInjection</a></li>
  <li><a href="https://www.nuget.org/packages/Microsoft.FeatureManagement/2.0.0-preview-010610001-1263" rel="noreferrer">Microsoft.FeatureManagement</a></li>
  </ol>
  
  <pre><code>using System;
  using System.Threading.Tasks;
  using Microsoft.Extensions.Configuration;
  using Microsoft.Extensions.DependencyInjection;
  using Microsoft.FeatureManagement;
  using Microsoft.FeatureManagement.FeatureFilters;
  
  namespace ConfigurationConsoleApp
  {
      class Program
      {
          static async Task Main(string[] args)
          {
              const string FeatureName = "Beta";
  
              var configuration = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build();
              var services = new ServiceCollection();
              services.AddSingleton(configuration).AddFeatureManagement().AddFeatureFilter&lt;PercentageFilter&gt;().AddFeatureFilter&lt;AccountIdFilter&gt;();
              var serviceProvider = services.BuildServiceProvider();
              var featureManager = serviceProvider.GetRequiredService&lt;IFeatureManager&gt;();
              var enabled = await featureManager.IsEnabledAsync(FeatureName);
              Console.WriteLine($"The {FeatureName} feature is {(enabled ? "enabled" : "disabled")} ");
          }
      }
  }
  
  // The following are the command for the packages.
  
  dotnet add package Microsoft.Extensions.Configuration.Json --version 2.1.1
  dotnet add package Microsoft.Extensions.DependencyInjection --version 2.1.1
  dotnet add package Microsoft.FeatureManagement --version 2.0.0-preview-010610001-1263
  
  
  </code></pre>