How to disable HTTP/2 on IIS 10

To disable HTTP/2 on Windows 10 HTTP.SYS, set the following registry value on the Windows 10 desktop in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters EnableHttp2Tls REG_DWORD 0 EnableHttp2Cleartext REG_DWORD 0 The second of these is only necessary if the failure is with HTTP. The first is for HTTPS.

How do you call msdeploy from powershell when the parameters have spaces?

Using the technique from Keith’s answer to How to run exe in powershell with parameters with spaces and quotes question you linked to, running echoargs -verb:dump -source:appHostConfig=$sitename -verbose gave me this output: Arg 0 is <-verb:dump> Arg 1 is <-source:appHostConfig=default> Arg 2 is <web> Arg 3 is <site> Arg 4 is <-verbose> This would explain … Read more

ASP.NET Core deployment to IIS error: Development environment should not be enabled in deployed applications

First, check the value of ASPNETCORE_ENVIRONMENT variable. You will have to set this environment variable to “Production” (or other environment than Development) Otherwise, you can update web.config like this- <configuration> <!– Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380 –> <system.webServer> <handlers> <add name=”aspNetCore” path=”*” verb=”*” modules=”AspNetCoreModule” resourceType=”Unspecified” /> </handlers> <aspNetCore processPath=”.\Application.exe” arguments=”” … Read more