Search code examples
entity-frameworkef-code-firstentity-framework-migrationsnpgsql

Npgsql can't find NpgsqlException when doing Migrations


When I do an update-database and an error happens at the database I get:

System.Runtime.Serialization.SerializationException: Type is not resolved for member 'Npgsql.NpgsqlException,Npgsql, Version=2.2.5.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7'.

Its trying to tell me about an error but I presume it can't find the exception type its trying to wrap it in so I'm left guessing at my mistake.

I'm using version 2.2.5.0 Npgsql.EntityFramework which is currently the latest version.


Solution

  • This is an open bug on the Npgsql issue tracker:

    https://github.com/npgsql/npgsql/issues/714