Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services AWS EC2无法打开到SQL Server的连接_Amazon Web Services_Amazon Ec2_Amazon Rds - Fatal编程技术网

Amazon web services AWS EC2无法打开到SQL Server的连接

Amazon web services AWS EC2无法打开到SQL Server的连接,amazon-web-services,amazon-ec2,amazon-rds,Amazon Web Services,Amazon Ec2,Amazon Rds,我在EC2上的web应用程序无法连接到AWS RDS Db实例 error: 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 co

我在EC2上的web应用程序无法连接到AWS RDS Db实例

error: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Win32Exception (0x80004005): The network path was not found
我在EC2上托管了一个web应用程序

使用本地SSM,我能够连接和编辑AWS RDS上的数据

在我的本地机器上,我还将我的Visual Studio应用程序指向AWS RDS实例,它运行得很好

现在,当我将应用程序部署到EC2时,应用程序无法连接到AWS RDS

使用AWS Toolkit for net,我为DB安全组添加了权限,并授予了EC2 Ip地址和专用Ip的权限。但是没有运气


请帮助……

检查您连接的地区

我最初在西部地区创建了一个数据库。我的本地电话继续连接到西部地区


当我给了所有必要的权限后,我把它给了东部地区的数据库。我的代码应用程序仍然指向西部地区。duh me.

检查您要连接的区域

我最初在西部地区创建了一个数据库。我的本地电话继续连接到西部地区

当我给了所有必要的权限后,我把它给了东部地区的数据库。我的代码应用程序仍然指向西部地区。嘘我