由于某些原因,在晚上,该站点由于命名管道错误而瘫痪。错误40。
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访问规则,确保web服务器的IP地址被列入白名单。
有什么问题的想法吗?
发布于 2011-08-06 00:37:40
如果我理解正确的话,你的本地网站(on-premise)可以连接到SQL Azure,但你部署在Azure中的网站不能?
请确保你的防火墙规则中包含"allow other windows azure services to access this server“。选中此选项基本上会阻止任何azure托管的应用程序/服务连接到您的数据库。
https://stackoverflow.com/questions/6956871
复制相似问题