Issue using hangfire in .net 8 with RBS

This is a curious one. I just installed Hangfire in my .net 8 web app. I get the following error.

C:********\Server\Program.cs(241,212): error CS1929: 'IGlobalConfiguration' does not contain a definition for 'GetConnectionString' and the best extension method overload 'ConfigurationExtensions.GetConnectionString(IConfiguration, string)' requires a receiver of type 'Microsoft.Extensions.Configuration.IConfiguration'

The application still runs and I don't get the error in visual studio or studio code. If it were just a weird error, it wouldn't care, but it stops me from creating or editing any pages... Any thoughts?

You can try the following approach:

Wrap the problematic code in:


Thank you, you guys think of everything!