Today, I learned about the membership function provided by ASP. net2.0, and called "Asp.net" from the website \ ASP. NET configuration menu in vs2k5. After the web site administration tool "is selected, errors always occur on the Security tab. The answer is found at the following URL:
Http://forums.microsoft.com/msdn/showpost.aspx? Postid = 81990 & siteid = 1 & pageid = 0
It turns out that this tab can only be used after one flip (I used sqlserver2k5 Enterprise Edition, express edition I don't know ). First, run aspnet_regsql to install the membership database. Then, modify the Web. config file (c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ config \ Web. config) on the machine or the project's web. config file. The Web. config file in my project is as follows:
<? XML version = " 1.0 " Encoding = " UTF-8 " ?>
< Configuration xmlns = " Http://schemas.microsoft.com/.NetConfiguration/v2.0 " >
< Connectionstrings >
< Remove name = " Localsqlserver " />
< Add name = " Localsqlserver " Connectionstring = " Data Source = localhost; initial catalog = aspnetdb; Integrated Security = true "
Providername = " System. Data. sqlclient " />
</ Connectionstrings >
< System. Web >
< Compilation debug = " True " />
</ System. Web >
</ Configuration >
Note the section <connectionstrings>... </connectionstrings>
If you encounter the same problem, I hopeArticleI can give you some tips.