Closed dacanizares closed 7 years ago
What are the errors and what did you try to do?
I'm modifying the default project that VS2017 creates and I'm getting errors with this line in startup.cs:
services.TryAddSingleton<IUserClaimsPrincipalFactory
It says that UserClaimsPrincipalFactory requires 2 arguments. It also can't found AddDefaultTokenProviders a couple of lines after.
I'm modifying the default project that VS2017 creates and I'm getting errors with this line in startup.cs:
services.TryAddSingleton<IUserClaimsPrincipalFactory, UserClaimsPrincipalFactory>();
That probably because you don't have this in: https://github.com/tugberkugurlu/AspNetCore.Identity.MongoDB/blob/c3c91067332852b63fdfad5fd3254dba6ec2800e/samples/IdentitySample.Mvc/Startup.cs#L171-L229
It also can't found AddDefaultTokenProviders a couple of lines after.
Same as before, it comes from https://github.com/tugberkugurlu/AspNetCore.Identity.MongoDB/blob/c3c91067332852b63fdfad5fd3254dba6ec2800e/samples/IdentitySample.Mvc/Startup.cs#L151-L159
Thanks! Sorry, I haven't seen that before. It worked perfectly.
I'm getting errors when I try to update the sample project to use it on the recently released stable version of VS2017 with asp core 1.1.