7

I tried to set-up the SQL tables for ASP .net 2.0 membership provider by clicking on ASP.net Configuration under Project.

I have completely uninstalled SQL 2005 Express and installed SQL 2008 Express instead.

It seems like that it can not connect to the database.

Does anybody know how to get this fixed so I can use 2008 instead ?

4

5 回答 5

1

尝试配置数据库,在 VS 命令提示符下键入“aspnet_regsql”。

然后设置数据库,最后更改 web.config 文件上的连接字符串。

ASP.NET SQL Server 注册工具 (Aspnet_regsql.exe)

于 2012-05-10T15:53:55.890 回答
0

What is your SQL 2008 installation instance called? What does your connection string for the membership provider look like?

As far as I know, there is (or was) a glitch in the SQL Server 2008 Express installation that even if you chose to install as "default" instance, it would still make it a "named instance" called ".\SQLExpress" instead. Could that be the problem?

Marc

于 2009-04-19T11:15:12.193 回答
0

正如 Marc 已经指出的那样,这可能是实例名称的问题。这已在 SQL Server 2008 Express 的服务包 1 中得到修复。有关详细信息和解决方法,请参阅此 Microsoft 知识库文章

于 2009-04-19T17:28:38.347 回答
0

SQL 2005 and 2008 are both configured in a fairly locked down state by default - and this means that SQL won't accept access the database other than through Shared Memory, even with Integrated Security.

You need to enable TCP/IP or Named Pipes for the Client Protocols for the server (as this is how ASP.NET talks to SQL if you've not configured a DSN to use Shared Memory.

I can't remember the exact steps in 2k8, as I've only had to do it once, but in 2k5 you had to open the SQL Server Configuration Manager, select SQL Native Client Configuration, Client Protocols, and enable TCP/IP and Named Pipes - it's a similar process for 2k8 as I recall.

于 2009-04-20T09:25:33.570 回答
0

成员标签中使用的connectionStringName应更改为您创建成员表的当前连接字符串。

如果connectionStringName未指向connectionStrings标记中的有效连接字符串名称,则应用程序不能使用成员资格表。

于 2012-05-16T10:14:19.073 回答