How to use http/2 for ASP.NET Core Web app on win 7?

47 Views Asked by At

I am writing an ASP.NET Core MVC web app on my Win 7 laptop. The .NET SDK version is 5.0.17.

And when I use a Google API, I get an error

HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while server offers only version fallback

I have found this https://learn.microsoft.com/zh-tw/aspnet/core/fundamentals/servers/kestrel/http2?view=aspnetcore-5.0 which says Kestrel can only use http/2 on Win 10 or higher.

Please help me, if someone know how to use it on Win 7.

0

There are 0 best solutions below