ASP.Net不显示“安全性"选项卡

编程入门 行业动态 更新时间:2024-10-23 05:32:42
本文介绍了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不显示“安全性"选项卡

本文发布于:2023-11-16 22:06:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607657.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:选项卡   安全性   ASP   Net   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!