ASP.NET

No IUserTwoFactorTokenProvider named \’Default\’ is registered

While working on .NET Core\’s Identity files, I encounter this error: No IUserTwoFactorTokenProvider<TUser> named \’Default\’ is registered. The Microsoft.AspNetCore.Identity.UserManager<TUser>.GenerateEmailConfirmationTokenAsync or GenerateUserTokenAsync functions couldn\’t generate a token because no provider was available upon registering a new user. It\’s a very simple fix, just add a little bit more to AddIdentityCore<User> configuration in Startup.cs class services. The …

No IUserTwoFactorTokenProvider named \’Default\’ is registered Read More »

Encrypt or Decrypt Connection Strings in web.config

Deploy applications in hosting environment we have to take care of application security items or confidential values of application like secure DB connection string, configuration values etc??? To secure all these information, we need to encrypt the keys.??ASP.NET 2.0 has built in functionality to encrypt / decrypt few sections of web.config file those are??RSAProtectedConfigurationProvider: This …

Encrypt or Decrypt Connection Strings in web.config Read More »

Scroll to Top