SQL Azure 数据库命名管道错误
直到昨晚,我的网站(由 DiscountASP.net 托管)及其连接的 SQL Azure 数据库都运行正常。
由于某种原因,该网站在夜间因命名管道错误而瘫痪。错误 40。
在连接字符串中为服务器名称添加前缀“tcp:”后,现在的错误是:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
因此,需要明确的是,在网站上次工作和项目之间,web.config 文件根本没有更改出现命名管道错误。
现在,用户名、密码和实例名称都是正确的,因为该站点在本地针对远程 SQl Azure 服务器完美运行。
我已检查实例名称和 SQl Azure 访问规则,确保 Web 服务器的 IP 地址已列入白名单。
关于出什么问题有什么想法吗?
Up until last night, my site (hosted by DiscountASP.net) and the SQL Azure database that it connects to were running normally.
For some reason, during the night, the site went down with a named pipe error. Error 40.
Having prefixed the server name with "tcp:" in the connection string, the error is now:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
So, just to be clear, the web.config file did not change at all between the time the website last worked and the item the named pipe error came up.
Now, the username, password and instance name are all correct since the site runs locally against the remote SQl Azure server perfectly.
I've checked the instance name and the SQl Azure access rules, ensuring that the web server's IP address is whitelisted.
Any ideas on whats wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我理解正确的话,您的本地网站(本地)可以连接到 SQL Azure,但您部署在 Azure 中的网站却不能?
确保您的防火墙规则具有“允许其他 Windows Azure 服务访问此服务器”。选中此选项基本上可以防止任何 azure 托管的应用程序/服务连接到数据库。
If I understand this right, your local website (on-premise) can connect to SQL Azure, but your website deployed in Azure can't?
Make sure your firewall rules has the "allow other windows azure services to access this server". Checking this option off basically prevents any azure-hosted application/service from connecting to your database.