我用aspnet_regsql创建了一个数据库,数据库是在sql sever 2008中创建的,而不是在我的项目中的数据文件夹中(我是否需要手动将它移动到文件夹?) 。
接下来,在网站管理工具中,我去了供应商部分,并点击了测试按钮。Asp.Net成员通过ASP.NET网站管理员工具
我得到了一个错误:
Could not establish a connection to the database. If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
也许我需要设置一些在一个web.config,像会员设置或连接字符串(或ASP.NET网站管理员工具应该为我创造这些设置)?
更新:
也许这是因为我使用SQL Server 2008中完全不表达什么?
更新2:
成员设置部分和连接字符串在网站管理工具我aspnetdb的数据库后,我打开安全 - >安全设置WIZARD->定义角色(4期),我得到这个错误:
遇到错误。请返回上一页并重试。
The following message may help in diagnosing the problem: Unable to connect to SQL Server database. at System.Web.Administration.WebAdminPage.CallWebAdminHelperMethod(Boolean isMembership, String methodName, Object[] parameters, Type[] paramTypes) at ASP.security_wizard_wizardpermission_ascx.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
我收到错误: 配置选项'启用用户实例'不存在,或者它可能是一个高级选项。 – luppi 2010-03-11 09:04:48
您使用的是哪个版本的Sql服务器?以上仅适用于快递版本。 – bristows 2010-03-11 09:31:50
请参阅我添加的更新... SQL Server 2008完整版... 如何使用完整版? – luppi 2010-03-11 09:34:14