[ad_1]
I’m trying to implement Hangfire for recurring job but got trouble with PostgreSQL. The application uses .NET + PostgreSQL with docker. Since this is my first time using Hangfire, I tested it on a temp application using MSSQL and everything was perfect.
For my dockerized application with PosthgreSQL, I used this guide https://worldwildweb.dev/getting-started-with-hangfire-on-asp-net-core-and-postgresql-on-docker/ but when I’m trying to fetch data from the database I get this error:
Not only I get this error but before the installation of Hangfire.PostgreSql Nuget every call in database was Ok, I could fetch data.
This is the Startup.cs -> ConfigureServices &
If I remove the Nuget Hangfire.PostgreSql then every call in database will be ok, but in order for Hangfire to work the package is needed. The connection string is ok but I can’t find how to resolve this problem.
[ad_2]