WinHttpHandler removed from .NET runtime

The WinHttpHandler class was removed from the System.Net.Http.dll assembly. It's now available only as an out-of-band (OOB) NuGet package.

Version introduced


Change description

In previous .NET versions, the WinHttpHandler class is available as part of the core .NET libraries. Starting in .NET 5, the WinHttpHandler class is only available as a separately installed NuGet package.

Install the System.Net.Http.WinHttpHandler NuGet package. Or, if you don't require WinHTTP-specific features, use SocketsHttpHandler instead.

Affected APIs