“The ConnectionString property has not been initialized.” - but only when publishing
问题 I have an MVC5 / EF6.1 website that runs perfectly on my development machine using LocalDb. However, when I publish this to an Azure Website with an Azure SQL Database, I get the following error when doing any database interaction: The ConnectionString property has not been initialized. I've searched all over and can't find the reason that this happens on Azure. The first file the stack trace points to is IdentityModels.cs:45 That contains the following: public class ApplicationDbContext :