【发布时间】:2016-04-09 16:02:43
【问题描述】:
在本地运行 web 应用时,连接数据库没有问题,
在将 Web 应用部署到 Azure 后,DB(也称为 Azure)连接尝试会引发以下错误:
[Win32Exception (0x80004005): No such host is known]
[SqlException (0x80131904): 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 - No such host is known.)]
DB FW 设置:允许访问 Azure 服务:设置为 ON
关于如何解决/解决此问题的任何想法?
【问题讨论】:
-
我建议您编辑您的问题以包含更多详细信息,例如导致错误的代码行以及您的连接字符串(当然会隐藏用户名/密码)。它可能与格式不正确的连接字符串有关。
标签: asp.net azure azure-sql-database azure-web-app-service