ASP.Net不显示“安全性"选项卡 [英] ASP.Net not showing security tab

查看:53
本文介绍了ASP.Net不显示“安全性"选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想使用ASP.Net网站管理工具在我的网站中使用成员身份,为此,当我单击安全性"选项卡时,它显示以下错误,

Hello All,

I want to use ASP.Net Website administration tool for using membership in my web site, for this when i am clicking on security tab , it is showing following error,

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: Unable to connect to SQL Server database.




因此,我无法使用网站管理工具,建议我解决此错误的解决方案..




so , i am unable to use website adminitartion tool, suggest me solution to resolve this error..

推荐答案

您好,

读取错误消息的最后一点:
无法连接到SQL Server数据库."
建议您用来尝试连接数据库的连接字符串可能不正确,或者您没有输入必要的安全凭证(即用户名和密码).因此,建议您检查连接字符串.如果您具有SQL Management Studio甚至是Visual Studio的数据库管理面板(不确定其确切名称-类似于服务器"或数据库"之类的名称),请通过其中之一连接到数据库,然后复制连接字符串.在SQL Management Studio中,您必须去寻找连接属性,在Visual Studio中,您应该能够右键单击连接(在服务器面板中),然后很容易地获得连接字符串.然后将其用作配置中的连接字符串.

但是,可能还有其他安全性或连接问题.例如,如果您从开发计算机进行连接,则可能具有对数据库的内部访问权限,但是如果您的站点在外部某处(即不在数据库服务器的本地网络中)的Web服务器上运行,则该站点可能无权访问.如果您的数据库在开发计算机的本地网络之外运行,则不会有问题.

希望这会有所帮助,
Ed
Hi there,

Reading that final bit of the error message:
"Unable to connect to SQL Server database."
Suggests that the connection string you are using to try and connect to your database is probably incorrect or you have not put in the necessary security credentials (i.e. username & password). Therefore, I suggest you check your connection string. If you have SQL Management Studio or even Visual Studio''s database management panel (not sure of its exact name - something like "Servers" or "Databases"), connect to your database through one of those then copy the connection string. In SQL Management Studio you will have to go hunting the in the connection properties, in Visual Studio you should be able to right click on the connection (in the servers panel) and then get the connection string quite easily. Then use this as your connection string in your configuration.

However, there may be other security or connection issues. For instance if you connect from your development machine you may have internal access to your database but if your site is running on a web server somewhere externally (i.e. not in your database server''s local network), it may not have access. If your database is run outside of your development machine''s local network this will not be an issue.

Hope this helps,
Ed


连接字符串有问题.


这篇关于ASP.Net不显示“安全性"选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆