ASP.Net网站管理工具配置
来源:互联网 发布:网络直播傅园慧 编辑:程序博客网 时间:2024/06/15 16:18
笔者想使用ASP.NET Web 应用程序管理工具来添加身份验证。
点击项目->asp.net配置打开了ASP.Net网站管理工具页面:
然后点击security选项卡,出现如下问题:
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.
笔者用的编程环境是VS2012。
解决方法:
详细介绍参考《asp.NET 2.0中的登陆控件简介 》
其中文中提及到的asp.net Web Site Administration Tool中Security需要一些相关的设置才可以应用,具体设置方法如下:
(Microsoft MSDN:http://forums.microsoft.com/msdn/showpost.aspx?postid=81990&siteid=1&PageID=0
)
在你的SQL服务器上建立asp.NET 2.0的应用程序支持数据,需要建立一些表,缺省是放在aspnetdb的数据库里面。而安装时并没有生成aspnetdb数据库所以出错。
首先,运行 aspnet_regsql(C:\windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe) 来安装membership所要建立的数据库。
在向导中选择SQL验证,输入数据库的用户名、密码(以前建的)。
要注意<connectionStrings> ... </connectionStrings>这个节
在本工程web.config中添加如下语句:
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer"
connectionString="Data Source=THINK-PC;Initial Catalog=aspnetdb;Persist Security Info=True;User ID=sa;Password=123456"
providerName="System.Data.SqlClient" />
</connectionStrings>
成功!
- ASP.Net网站管理工具配置
- ASP.NET网站管理工具配置过程
- ASP.NET网站管理工具的初始配置
- ASP.NET网站管理工具的初始配置
- ASP.NET网站管理工具
- Asp.Net 网站管理工具-使用自定义的配置源
- 关于asp.net 2.0的网站管理工具的配置
- ASP.NET网站管理工具 1
- asp.net网站管理工具-安全
- [求助]ASP.NET网站管理工具
- asp.net网站管理工具的问题
- asp.net网站管理工具的问题
- asp.net网站管理工具数据库连接出错
- .net 2.0 webadmin tool,ASP.NET 网站管理工具
- 有关asp.net网站管理工具的一个小问题
- ASP.NET 网站管理工具超时问题解决办法之一
- 使用ASP.NET网站管理工具出现“遇到错误”
- asp.net网站管理工具 的 地址(Web Site Administration Tool )
- Spring通过工厂创建实例的注意事项
- C++大学基础教程_10_67_new和delete和static
- linux修改最大文件链接数open files/ulimit -n
- C#的接口有什么用?
- 百度首席科学家 Andrew Ng谈深度学习的挑战和未来
- ASP.Net网站管理工具配置
- [leetcode] Minimum Depth of Binary Tree
- cout 以2/8/10/16进制输出
- 淘宝Tair分布式缓存系统 总体结构分析
- 自定义Unity网络播放器的载入画面
- #小城大微# 快来关注小城大微微信平台吧!
- 4复数与复变函数(四)
- 颜色的十六进制代码
- xcode4的环境变量,Build Settings参数,workspace及联编设置