.net - Can't connect Amazon rds database in Amazon ec2? -
i have console application has amazon rds connection entity framework . running in local pc. when running application in amazon ec2 can not connect amazon rds database , saying 'the underlying provider failed on open' . connection string of entity framework ...
<add name="myentities" connectionstring="metadata=res://*/yhfinmodel.csdl|res://*/yhfinmodel.ssdl|res://*/yhfinmodel.msl;provider=system.data.sqlclient;provider connection string="data source=datasourcename,portnumber;initial catalog=databasename;persist security info=true;user id=userid;password=password;multipleactiveresultsets=true;app=entityframework"" providername="system.data.entityclient" />
thanks in advance.
have looked @ security groups? think need add ec2 security group using have port access rds instance.
Comments
Post a Comment