'Getting this : System.InvalidOperationException

You must call the "WebSecurity.InitializeDatabaseConnection" method before you call any other method of the "WebSecurity" class

I'm using the database which is built in Visual Studio 2017, I'm not using external SQL Server for the database:

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source