Hello,
I've made several works (web) using C# and Npgsql. However, I need to transfer them to Amazon AWS and got some issues:
1) Amazon no longer recommends Ngpsql cause there are troubles using SSL connections. Please, see
https://forums.aws.amazon.com/thread.jspa?messageID=568367#568367;
2) When using AWS Beanstalk component to deploy web applications I need to create a DNS CNAME record to map my domain name and the beanstalk endpoint that seems to change time to time. It seems Npgsql tries to make connections using the beanstalk endpoint and doen't to get the right IP. Please see below the message from exception:
Npgsql.NpgsqlException: No such host is known ---> System.Net.Sockets.SocketException: No such host is known
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at Npgsql.NpgsqlClosedState.Open(NpgsqlConnector context) in C:\projects\Npgsql2\src\Npgsql\NpgsqlClosedState.cs:line 137
--- End of inner exception stack trace ---
at Npgsql.NpgsqlClosedState.Open(NpgsqlConnector context) in C:\projects\Npgsql2\src\Npgsql\NpgsqlClosedState.cs:line 232
at Npgsql.NpgsqlConnector.Open() in C:\projects\Npgsql2\src\Npgsql\NpgsqlConnector.cs:line 683
at Npgsql.NpgsqlConnectorPool.GetPooledConnector(NpgsqlConnection Connection) in C:\projects\Npgsql2\src\Npgsql\NpgsqlConnectorPool.cs:line 481
at Npgsql.NpgsqlConnectorPool.RequestPooledConnectorInternal(NpgsqlConnection Connection) in C:\projects\Npgsql2\src\Npgsql\NpgsqlConnectorPool.cs:line 252
at Npgsql.NpgsqlConnectorPool.RequestPooledConnector(NpgsqlConnection Connection) in C:\projects\Npgsql2\src\Npgsql\NpgsqlConnectorPool.cs:line 205
at Npgsql.NpgsqlConnection.Open() in C:\projects\Npgsql2\src\Npgsql\NpgsqlConnection.cs:line 543
at WSGeral.ObtemMunic(String siglauf, String id_acesso)
I'll appreciate so much some hints to solve this problem. I've been using Npgsql until now and I'm satisfied with it. It will be a terrible option to me accept the Amazon recomendation to change to ODBC.
Thanks in advance.
Adão Paulino