环境:vs2005 + sql 2005 ctp创建了个website,  "Website"--->"asp.net configuration",来到网站管理工具,进入"安全"后,显示
"选定的数据存储区出现问题,原因可能是服务器名称或凭据无效,或者权限不足。也可能是未启用角色管理器功能造成的。请单击下面的按钮,以重定向到可以选择新数据存储区的页。 
下面的消息可能会有助于诊断问题: 无法连接到 SQL Server 数据库。 "
进入"选择数据存储区"          "AspNetSqlProvider"  测试显示
"未能建立数据库连接。
如果尚未创建 SQL Server 数据库,请退出网站管理工具,使用 aspnet_regsql 命令行实用工具创建和配置数据库,然后返回到此工具以设置提供程序。"然后"sql server"安装向导,使用sql server 身份验证,数据库"aspnetdb",完成!回到第一步,还是不对,为什么啊??

解决方案 »

  1.   

    你安装SQLExpress了么?确认你可以在App_Data目录有可写权限
      

  2.   

    没有装SQLExpress!权限好像没有
      

  3.   

    if you are using SQL Server 2005 instead of SQLExpress, you need to follow the instructions herehttp://msdn2.microsoft.com/library/x28wfk74(en-us,vs.80).aspxthen modify your web.config to point to the right database
      

  4.   

    sorryhttp://winfx.msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_aspnetgenref/html/48a70e56-9e1c-4a41-a89e-5be7ac8fe18d.asp