Been trying to get my asp.net application to connect to my PostgreSQL database under mono for a few days to no avail. Can connect to it under IIS but not Apache and Mono.
The ASP.NET part works fine, it's just the connection to the database that wont play nice.
I get the following error:
Description: HTTP 500. Error processing request.
Stack Trace:
System.Exception: Failed to establish a connection to '127.0.0.1'.
at Npgsql.NpgsqlClosedState.Open (Npgsql.NpgsqlConnector context) [0x00101] in /Users/fxjr/Desenvolvimento/ProjetosOpenSource/Npgsql/NpgsqlSourceRelease/Npgsql2/src/Npgsql/NpgsqlClosedState.cs:171
Version information: Mono Runtime Version: 2.10.8 (tarball Fri Jul 20 23:48:09 UTC 2012); ASP.NET Version: 4.0.30319.1
Versions: Fedora 18, Mono 2.10.8, Apache 2.2.23, Npgsql 2.0.12
The production server that this will eventually run on is currently RHEL with Apache 2.2.x.
Thanks