Membership provider in asp .net core app

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP

Membership provider in asp .net core app



I am enforcing the problem to add membership provider into config in the .net core application. I must add it because it references to older projects which contain the legacy code and reference to an assembly of System.Web.ApplicationServices. And in this assembly, the flow goes to line, which checks if the name of the provider is not null.


if ( providerName == null || SystemWebProxy.Membership.Providers[providerName] == null )

throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, ApplicationServicesStrings.Membership_provider_name_invalid), "providerName" );



But anyway, I am adding the necessary implementation in appsettings.json:


"Membership":
"DefaultProvider": "blahblah",
"Providers":
"Add":
...
"Name": "blahblah"
...




And in the startup class I am configuring the sqlMembershipProvider in the following way:


services.Configure<System.Web.Security.SqlMembershipProvider>(Configuration.GetSection("Membership"));



Could somebody tell me, why I am not getting my provider implemented into the configuration? Maybe I am going the wrong way?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

Executable numpy error

PySpark count values by condition

Mass disable jenkins jobs