Gilian
Gilian

Reputation: 1599

WinHttpException when calling a web service

I'm trying to call any WCF service in code locally which gives me the following exception: WinHttpException: The group or resource is not in the correct state to perform the requested operation.

Some code example: await service.ReadMultipleAsync(filters.ToArray(), null, 1);. This might not say anything though. The weird thing is that it worked before updating windows 10. This might be a coincidence, but I have absolutely no code changes.

I can also talk directly to the WFC service through some tooling, so it cannot be some sort of IP blocking or firewall. But doing this through code results in the error, both using Kerstel or IIS Express.

Possible relevant packages:

I'm currently clueless. Any help would be appreciated!

Edit:

A more detailed exception:

System.Net.Http.WinHttpException (8007139F, 5023): The group or resource is not in the correct state to perform the requested operation
   at System.Threading.Tasks.RendezvousAwaitable`1.GetResult()
   at System.Net.Http.WinHttpHandler.StartRequest(WinHttpRequestState state)

Upvotes: 1

Views: 269

Answers (1)

Gilian
Gilian

Reputation: 1599

I did a rollback from windows 10 version 1903 to 1803 and it suddenly started working again. Not really a solution but it works. Still no clue on what's wrong. Might be a bug?

Upvotes: 1

Related Questions