I needed to decrypt ASP.Net membership provider user password. These password are stored in [dbo].[aspnet_Membership] database. I wrote below code to do the decryption for me . using System; using System.Text; using System.Web.Security; namespace RetreivePassword { public class NetFourMembershipProvider : SqlMembershipProvider { public string GetClearTextPassword(string encryptedPwd) { byte[] encodedPassword = Convert.FromBase64String(encryptedPwd); byte[] bytes = this.DecryptPassword(encodedPassword); […]

Read More →

Here are the steps to follow to create default user identity: Start Internet Information Services (IIS) Manager. In the left pane, expand the local computer and then expand Application Pools. Right-click the Application Pools node, click New, and then click Application Pool. In the Add New Application Pool dialog box, type TestPool in the Application […]

Read More →

After Initial Setup, if you have added a new column use following step to Auto migrate your changes to database and to avoid “InvalidOperationException” The model backing the ‘YourContext’ context has changed since the database was created. Consider using Code First Migrations to update the database Step 1 : Open up your package manager console […]

Read More →