要么装sql server express 2005,
要省事将aspnetdb注册到你的sql server 2005,注册方法如下:
C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regsql.exe按提示搞定
然后在web.config中加:
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=servername/yls2005;Initial Catalog=ASPNETDB;UID=sa;PWD=2005"
providerName="System.Data.SqlClient"/>
</connectionStrings>