title: IUserClaimsPrincipalFactory`1 not registered error in IndentityServer implementation
body: <p>I am getting below exception even after registering the AddDefaultIdentity</p>
  <pre><code>System.InvalidOperationException: Service type: IUserClaimsPrincipalFactory`1 not registered.
  </code></pre>
  <p>Here's the Identity registration code:</p>
  <pre><code>services.AddDefaultIdentity&lt;ApplicationUser&gt;(options =&gt;
              {
                  //Disable account confirmation.
                  options.SignIn.RequireConfirmedAccount = false;
                  options.SignIn.RequireConfirmedEmail = false;
                  options.SignIn.RequireConfirmedPhoneNumber = false;
              })
              .AddEntityFrameworkStores&lt;ApplicationDbContext&gt;();
  </code></pre>
  <p>And here's the IdentityServer code:</p>
  <pre><code>        var builder = services.AddIdentityServer()
              .AddInMemoryApiScopes(IdentityServerConfig.ApiScopes)
              .AddInMemoryIdentityResources(IdentityServerConfig.IdentityResources)
              .AddInMemoryApiResources(IdentityServerConfig.ApiResources)
              .AddInMemoryClients(IdentityServerConfig.Clients)
              .AddAspNetIdentity&lt;IdentityUser&gt;();
  </code></pre>