ASP.NET Membership.ValidateUser 无法连接到远程 SQL Server

发布于 2024-08-23 12:58:39 字数 377 浏览 5 评论 0原文

我有一个 ASP.NET 应用程序,它使用标准 SQL Server 成员资格提供程序进行身份验证。与本地数据库配合良好(这不是 SQL Svr Express!)。当我尝试对远程数据库进行身份验证时,即使使用正确的连接字符串,我总是会收到“命名管道提供程序,错误 40:无法打开与 SQL Server 的连接”。我已验证服务器允许远程连接并且支持命名管道连接。没有其他人同时使用该数据库(尽管其他人可能已连接到服务器)。这是我的 web.config 中的连接字符串和成员信息(为了隐私而虚拟的名称和 IP 地址)。有人有什么想法吗? 鲍勃

(与上面的 roleManager 的设置相同)

I've got an ASP.NET app that uses the standard SQL Server Membership provider to authenticate. Works fine with a local database (this is NOT SQL Svr Express!). When I try to authenticate against a remote database, even with correct connection string, I always get a 'Named Pipes Provider, error 40: Could not open a connection to SQL Server. I've verified that the server allows remote connections and that it supports Named Pipes connections. No one else is using the database at the same time (although others may be connected to the server). Here is the connection string and membership info in my web.config (names dummied and ip address dummied for privacy). Any one have any ideas?
Bob

(same settings as above for roleManager)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぽ尐不点ル 2024-08-30 12:58:39

命名管道仅对本地连接有效。需要TCP协议。

Named pipe is valid for local connection only. Need TCP Protocol.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文