Error message:
System. Web. Security. sqlmembershipprovider requires a database architecture compatible with architecture version 1. However, the current database architecture is not compatible with this version. You may need to use aspnet_regsql.exe (provided in the Framework installation directory) to install a compatible architecture or upgrade the provider to a newer version..
Run asp_regsql in the command line of vs2005, and then modify the connection string of the configuration file as prompted.
Note in Web. config:
<Add name = "sqlmembershipprovider"
Type = "system. Web. Security. sqlmembershipprovider"
Connectionstringname = "sqlmembershipconnstring"
Applicationname = "MyCard"
Enablepasswordretrieval = "false"
Enablepasswordreset = "true"
Requiresquestionandanswer = "false"
Requiresuniqueemail = "false"
Passwordformat = "hashed"
Minrequiredpasswordlength = "1"
Minrequirednonalphanumericcharacters = "0"
Passwordstrengthregularexpression = ""/>
========
Applicationname = "MyCard", which is the name of the website (or virtual directory ).