New to Telerik Reporting? Download free 30-day trial

The type initializer for Npgsql threw an exception


Product Progress® Telerik® Reporting


The connection to the PostgreSQL database fails despite the connection string being correct. This can happen while configuring the SqlDataSource component's connection in the designer or when displaying the report in areport viewer.

Error Message

System.TypeInitializationException: The type initializer for 'Npgsql.TypeMapping.GlobalTypeMapper' threw an exception

Method 'DisposeAsync' in type 'Npgsql.NpgsqlBinaryExporter' from assembly 'Npgsql, Version=, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.":"Npgsql.NpgsqlBinaryExporter"} | System.Exception {System.TypeLoadException}


This is an issue introduced with version 4.1.3 of the Npgsql data provider. We recommend using version >=4.1.10 of the Npgsql data provider instead - Configuring the Npgsql data provider.

See Also

In this article