VWD中ASP.NET Configuration的Security页的问题 如何解决??? 急!! ( 积分: 99 )

O

okgxsh

Unregistered / Unconfirmed
GUEST, unregistred user!
在新创建的web site project上点击ASP.NET Configuration 进入Security页,进入安
全管理页面。 出现了如下错误选定的数据存储区出现问题,原因可能是服务器名称或凭
据无效,或者权限不足。也可能是未启用角色管理器功能造成的。请单击下面的按钮,
以重定向到可以选择新数据存储区的页。下面的消息可能会有助于诊断问题: 无法连接
到 SQL Server 数据库。
我从网络上搜了一段解决方案!如下: 设置完后,还是提示错误!
解决方案
1、C:/WINNT/Microsoft.NET/Framework/v2.0.50727/aspnet_regsql.exe
用默认的aspnetdb
2、VS:工具(T)-->选项-->数据库工具-->数据连接-->SqlServer实例名称(不要用sqlexp
ress)改为localhost
3、打开VS-->工具-->连接到数据库-->选择服务器-->选择数据库aspnetdb-->高级-->复
制下面的连接字符串Data Source=<localhost>;Initial Catalog=aspnetdb;Integrated
Security=True
4、IIS:默认网站-->属性-->ASP.NET卡-->&quot;编辑全局配置按钮&quot;-->常规卡-->localSqlSe
rver的连接字符串改为:Data Source=<localhost>;Initial
Catalog=aspnetdb;Integrated Security=True
5、IIS:默认网站-->属性-->ASP.NET卡-->&quot;编辑全局配置按钮&quot;-->身份验证卡-->选定&quot;
启用角色管理&quot;

错误:
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Serverdo
es not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
顶部