i have a problem with hangfire i have one project for WebAPI using .NET 8 and PostgreSql For DB
when i run the 2 projects i got error in class NpgsqlConnectionFactory
Not really something that can be wrong in the library. Check how and when AppSettings.ConnectionString is configured. Exception is saying it is null at the time of calling the UsePostgreSqlStorage().
i have a problem with hangfire i have one project for WebAPI using .NET 8 and PostgreSql For DB when i run the 2 projects i got error in class NpgsqlConnectionFactory
here is how i configure Hangfire
services.AddHangfire((provider, configuration) => configuration .UseFilter(new CustomAutomaticRetryAttribute()) .SetDataCompatibilityLevel(CompatibilityLevel.Version_170) .UseSimpleAssemblyNameTypeSerializer() .UseRecommendedSerializerSettings() .UseLogProvider(new CustomHangfireLogProvider())
if DEBUG
endif
if !DEBUG
endif
if DEBUG
endif
and this is the packages that i have installed