Azure错误:建立与SQL Server的连接时发生与网络相关或特定于实例的错误 [英] Azure Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server

查看:58
本文介绍了Azure错误:建立与SQL Server的连接时发生与网络相关或特定于实例的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有SQL Server&通过Microsoft Azure平台托管的Web应用程序.每当我从本地网络运行Web应用程序(并尝试连接Azure SQL服务器)时,我总是不断遇到错误,但是我从来没有遇到过Azure Web应用程序服务的问题(即,将我的Web应用程序托管在Azure上之后)

I have SQL server & web app hosted over Microsoft Azure platform. I am constantly getting above error when ever i run web application (and try to connect azure sql server) from my local network, however i never face issue on azure web app service (i.e. After hosting my web app on azure)

我知道这个错误非常熟悉.但是在这种情况下,这似乎很奇怪.我已经检查了以下内容,

I know that this error is very familiar. But in this case it seems weird. I have already checked below things,

  1. SQL连接已正确管理. (我正在使用ADO.Net)
  2. 所有网关IP均针对Azure sql列入白名单.
  3. 没有防火墙阻止我的专用网络.

任何帮助将不胜感激.

Any help will be appreciated.

推荐答案

您需要为您的IP地址添加白色,SQL azure将需要知道您的应用程序IP

you need to white your IP address for same, SQL azure will need to know the your Application IP

这篇关于Azure错误:建立与SQL Server的连接时发生与网络相关或特定于实例的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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