title: No service for type 'Microsoft.AspNetCore.Identity.SignInManager When
body: <p>I am getting </p>
  
  <blockquote>
    <p>InvalidOperationException: No service for type
    'Microsoft.AspNetCore.Identity.SignInManager
    1[Authorization.IdentityModels.ApplicationUser]' has been registered.</p>
  </blockquote>
  
  <p>when I run my ApsCore MVC website. </p>
  
  <p>this are segments from my code:</p>
  
  <p>ConfigureServices:</p>
  
  <pre><code>services.AddDbContext&lt;ApplicationDbContext&gt;(options =&gt;
                          options.UseNpgsql(configuration["Data:DefaultConnection:ConnectionString"]));
  
  
  
  services.AddIdentity&lt;ApplicationUser, IdentityRole&lt;Guid&gt;&gt;()
                      .AddEntityFrameworkStores&lt;ApplicationDbContext, Guid&gt;()
                      .AddDefaultTokenProviders();
  </code></pre>
  
  <p>Configure:</p>
  
  <pre><code>app.UseIdentity();
  </code></pre>
  
  <p>ApplicationDbContext.cs</p>
  
  <pre><code>public class ApplicationDbContext : IdentityDbContext&lt;ApplicationUser, IdentityRole&lt;Guid&gt;, Guid&gt; 
  </code></pre>
  
  <p>ApplicationUser.cs</p>
  
  <pre><code> public class ApplicationUser : IdentityUser&lt;Guid&gt;
  </code></pre>
  
  <p>I will be very happy if you can help me.</p>