将ASP.NET Core 1.1发布到基于Linux的App Service

时间:2017-08-06 00:34:48

标签: asp.net linux azure web-deployment

当我尝试使用Web Deploy(Visual Studio 2017 for Windows)发布到Linux中托管的Azure应用服务时,会发生以下错误:

Could not connect to the remote computer ("my-linux-api.scm.azurewebsites.net") using the specified process ("Web Management Service") because the server did not respond. Make sure that the process ("Web Management Service") is started on the remote computer.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.
The remote server returned an error: (405) Method Not Allowed.  

错误描述中的链接似乎是指基于Windows的主机。 该服务已启动并正在运行,并响应我的请求:

enter image description here

我该如何解决?

1 个答案:

答案 0 :(得分:0)

Linux上没有Web部署。这是Windows / IIS的事情。 Push with git instead.scm.服务(Kudu)知道如何在Linux上处理ASP.NET Core部署。