A quick note about setting up asp.net forms authentication on appharbor

The default mvc web app project in visual studio 2012 uses a default connection string named “DefaultConnection”. If like me, you follow the automatic migrations tutorial from appharbor¬†and change the connection string name in the web.config AND you plan on using forms authentication, make sure to also update it in the¬†InitializeSimpleMembershipAttribute class:


WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "UserName", autoCreateTables: true);

and AccountModels.cs in the models folder:

public UsersContext()
 : base("DefaultConnection")