I'm relatively new to the Standalone Report Designer, so I apologize if this is expected behavior. I'm connecting to Postgres and have everything set up correctly (AFAIK). If I open the .NET Report Designer via the EXE, the data connection initializes and I get data. However, if I click on a TRDP file to open the designer, the data connection doesn't initialize and I get an "Unable to establish a connection to the database" message with inner exception "Cannot load type for DbProviderTypeName "Npgsql.NpgsqlFactory". Why would opening the EXE directly be any different from opening via TRDP? This feels like a bug, but there may some documentation I just haven't made it to yet.
My current setup:
- Standalone Report Designer v18.0.24.305
- Npgsql v6.0.10
- Npgsql.dll exists in the same directory as Telerik.ReportDesigner.Net.exe
- Connection string and assembly reference added to Telerik.ReportDesigner.Net.dll.config
- config file snippet:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<clear />
<add name="Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString" connectionString="Data Source=No Local Servers Found!;Initial Catalog=AdventureWorks;Integrated Security=SSPI" providerName="System.Data.SqlClient"/>
<add name="{theName}" connectionString="{theConnectionString}" providerName="Npgsql" />
</connectionStrings>
<Telerik.Reporting>
<AssemblyReferences>
<add name="Npgsql" />
</AssemblyReferences>
</Telerik.Reporting>
</configuration>