From: mali.jitendra@tcs.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14382: System.TypeLoadException: Failure has occurred while loading a type
Date: Wed, 19 Oct 2016 10:43:48 +0000
Message-ID: <20161019104348.1413.83547@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14382
Logged by: Jitendra Mali
Email address: mali.jitendra@tcs.com
PostgreSQL version: 9.2.13
Operating system: Red Hat Linux 7.2
Description:
MVC 2 Web Application is deployed on Red Hat Linux 7.2. It is using Mono
4.2.2 and Postgres 9.2. Postgres and web app are present on same linux box
and trying to access app from same linux box.
pg_hba.conf is configured with below settings:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all 0.0.0.0/32 trust
And postgresql.conf is configured with below connection setting:
# - Connection Settings -
listen_addresses = 'localhost'
port = 5432
After modification in above config files, database is restarted.
When web app is calling NpgsqlConnection's open method, below error is
surfacing:
System.TypeLoadException: Failure has occurred while loading a type.
at Npgsql.NpgsqlConnector.Open () [0x0002b] in
<66e0c39290f143458641d7ea98ad7557>:0
at Npgsql.NpgsqlConnectorPool.GetPooledConnector (Npgsql.NpgsqlConnection
Connection) [0x0015f] in <66e0c39290f143458641d7ea98ad7557>:0
Deployment folder's bin folder is containing Npgsql.dll (Version 2.2.5.0 and
Mono.Security.dll (Version 2.0.0.0).
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: mali.jitendra@tcs.com
Subject: Re: BUG #14382: System.TypeLoadException: Failure has occurred while loading a type
In-Reply-To: <20161019104348.1413.83547@wrigleys.postgresql.org>
References: <20161019104348.1413.83547@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox