Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: WebSecurity.InitializeDatabaseConnection error message incorrect for MVC app [454]

$
0
0
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.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>