-
Notifications
You must be signed in to change notification settings - Fork 170
.AddRoundRobinLoadBalancer() causes NotSupportedException in .net5.0 #530
Copy link
Copy link
Closed
Labels
Component/DiscoveryIssues related to Steeltoe Service DiscoveryIssues related to Steeltoe Service DiscoveryType/bugSomething isn't workingSomething isn't working
Milestone
Description
When using .AddRoundRobinLoadBalancer() for client side load balancing in .net5.0 upon sending a http request an exception is thrown: NotSupportedException: BinaryFormatter serialization and deserialization are disabled within this application. See https://aka.ms/binaryformatter for more information.
Steps to reproduce
Steps to reproduce the behavior:
- Create an ASP.NET Core Web API project
- Configure a named http client to use
DiscoveryHttpClientHandlerand add.AddRoundRobinLoadBalancer().
services.AddHttpClient("test")
.AddRoundRobinLoadBalancer()
.ConfigurePrimaryHttpMessageHandler(sp => new DiscoveryHttpClientHandler(sp.GetService<IDiscoveryClient>()))
.AddTypedClient<ITestService, TestService>();
- Make a request through the http client.
Environment:
- Steeltoe Version [3.0.1]
- .NET Version [.NET5.0]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component/DiscoveryIssues related to Steeltoe Service DiscoveryIssues related to Steeltoe Service DiscoveryType/bugSomething isn't workingSomething isn't working