ok, now ...
Users database is created and has UserProfile and some other empty tables.
_AppStart.cshtml:
@{
WebSecurity.InitializeDatabaseConnection("Users", "UserProfile", "UserId", "Email", true);
}
Default.cshtml:
@{
WebSecurity.CreateAccount("tom2", "23456", false);
}
<html>
<body>
<p>It is value</p>
</body>
</html>
i get an error on line: WebSecurity.CreateAccount("tom2", "23456", false);
Description: An unhandled exception occurred during the execution of the current web request.
Exception Details: System.Web.Security.MembershipCreateUserException: The Provider encountered an unknown error.