网站管理工具:无法连接到 SQL Server 数据库(使用 SQL Server 开发版) [英] Web Site Administration Tool: Unable to connect to SQL Server database (using SQL Server Development Edition)

查看:27
本文介绍了网站管理工具:无法连接到 SQL Server 数据库(使用 SQL Server 开发版)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 ASP.NET 2.0,我使用的是本地服务器 --> SQL Server 2005 开发版.当我进入 VIsual Studio 2.0 Professional 并转到菜单项 WEBSITE --> ASP.NET CONFIGURATION 时,会显示 ASP.NET 网站管理工具.当我单击安全链接时,大约 30 秒后会弹出错误消息,提示无法连接到 SQL Server 数据库.我可以通过 VS 2005 中的服务器资源管理器以及网格控制等连接到 SQL 数据库,但是当我尝试通过 ASP.NET CONFIGURATION 连接时,我不断收到错误消息.

I am using the ASP.NET 2.0 and I am using local server --> SQL Server 2005 Development Edition. WHen I go into VIsual Studio 2.0 Professional and go to menu item WEBSITE --> ASP.NET CONFIGURATION, the ASP.NET Web Site Administration Tool shows. When I click on the Security link, after about 30 seconds an error pops saying Unable to connect to SQL Server database. I can connect to the SQL database via Server Explorer in VS 2005 and also via Grid Control etc but I keep getting the error when I try to connect via ASP.NET CONFIGURATION.

我将不胜感激任何人的帮助.

I will greatly appreciate anyone help.

谢谢!

推荐答案

不确定是否是这个问题,但 ASP.NET 配置过去需要 ASP.NET 表.您可以使用以下方法创建它们:

Not sure if that's the problem, but the ASP.NET Configuration used to require the ASP.NET tables. You could create those with:

aspnet_regsql.exe -E -S localhost -A all

aspnet_regsql 可执行文件位于:

The aspnet_regsql executable can be found in:

C:\%windir%\Microsoft.NET\Framework\<versionNumber>\aspnet_regsql.exe

另请参阅 MSDN 上的这篇文章

See also this article on MSDN

这篇关于网站管理工具:无法连接到 SQL Server 数据库(使用 SQL Server 开发版)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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