Recently we migrated .net3.1 to .net6.0 with minmal hosting model. Steeltoe configuration is not loading after migration, but the same is working in .netcore 3.1.
code:
builder.ConfigureAppConfiguration((hostContext, configApp) => { configApp.AddConfigServer(); })
app is deployed in azure Error we are getting as
Application: w3wp.exe
CoreCLR Version: 6.0.322.12309 .NET Version: 6.0.3 Description: The process was terminated due to an unhandled exception. Exception Info: Steeltoe.Extensions.Configuration.ConfigServer.ConfigServerException: Could not locate PropertySource, fail fast property is set, failing ---> System.Net.Http.HttpRequestException: An attempt was made to access a socket in a way forbidden by its access permissions. (localhost:8888) ---> System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at
Check your settings for the config server address and the order your config providers are added. The message you're seeing is a failure to connect to localhost on port 8888. Unless you're running the config server on the same machine as your app in Azure, there's a misconfiguration.
I can't tell which builder you're configuring, but Steeltoe 3.1.3 in a .NET 6 minimal API project connects fine to a config server running on localhost with this example: .csproj:
appsettings.json:
program.cs: