http://forums.microsoft.com/msdn/showpost.aspx?postid=81990&siteid=1&PageID=0
原来这个选项卡是要经过一翻设置才能使用的(我用sqlserver2k5 enterprise edition, express edition我就不知道了)。首先,运行 aspnet_regsql 来安装membership所要建立的数据库。然后,修改机器上web.config文件(C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config)或者是工程的web.config文件。我的工程下的web.config文件如下:
<?
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 >
要注意<connectionStrings> ... </connectionStrings>这个节
< 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 >
如果你也遇到同样的问题,希望我篇文章能给你一点提示。