My brain is scrambled with this issue.
I've been following a tutorial on Seeding Users & Roles at the following link :-
I get as far as attempting to update the database, which then should seed a User, but i 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.**
Another member posted this issue here :- Cannot seed Users & Roles
The resolution that was provided doesnt help me as I've got the correct version of the WebMatrix.WebData.Dll referenced in my project. (Version 2).
Other people have been able to follow the instruction without fault, it makes no sense. O have tried all of the work around's others have issued, but the fault wont shift.