[Mono-aspnet-list] NPGSQL - Connection Refused

eSPiYa vdolosa at gmail.com
Tue Jul 15 15:18:42 UTC 2014


I created an ASP.NET MVC4 Web API application which is hosted on Apache2
server through mod_mono. The PostgreSQL database server is hosted on the
same machine.

It works fine on my development machine(Windows), using SSH-tunnel to access
the database server. But whenever I try to put it on the development server,
I get the this error message:

{"Message":"An error has occurred.","ExceptionMessage":"Connection
refused","ExceptionType":"System.Net.Sockets.SocketException","StackTrace":"
at System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException
() [0x00000] in :0 \n at System.Net.Sockets.Socket.EndConnect (IAsyncResult
result) [0x00000] in :0 \n at Npgsql.NpgsqlClosedState.Open
(Npgsql.NpgsqlConnector context, Int32 timeout) [0x00000] in :0 "}

I checked the connection string several times but it should be fine.



--
View this message in context: http://mono.1490590.n4.nabble.com/NPGSQL-Connection-Refused-tp4663324.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list