If you try to use WebSecurity before initializing it, you get the following error message:
"You must call the "WebSecurity.InitializeDatabaseConnection" method before you call any other method of the "WebSecurity" class. This call should be placed in an _AppStart.cshtml file in the root of your site."
Note the recommendation of where to place the call. This is applicable for a WebPages app where this file likely already exists. For an MVC app, the template has the "init" code in the "InitializeSimpleMembershipAttribute" class. We need a more accurate error msg here for MVC apps.
Comments: New templates do not use web security anymore, so this bug doesn't meet the bar.
"You must call the "WebSecurity.InitializeDatabaseConnection" method before you call any other method of the "WebSecurity" class. This call should be placed in an _AppStart.cshtml file in the root of your site."
Note the recommendation of where to place the call. This is applicable for a WebPages app where this file likely already exists. For an MVC app, the template has the "init" code in the "InitializeSimpleMembershipAttribute" class. We need a more accurate error msg here for MVC apps.
Comments: New templates do not use web security anymore, so this bug doesn't meet the bar.