Visual studio 2015 ASP.Net核心无法发布到Azure应用程序服务

Visual studio 2015 ASP.Net核心无法发布到Azure应用程序服务,visual-studio-2015,asp.net-core,azure-web-app-service,web-publishing,Visual Studio 2015,Asp.net Core,Azure Web App Service,Web Publishing,我有一个ASP.Net Core web应用程序(DotNetCore.1.0.1 VS2015Tools.Preview2.0.2),我正试图通过Visual Studio将其发布到Azure应用程序服务 Azure应用程序服务和资源组都是全新的 “执行命令[“C:\Program Files(x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe””几分钟后,发布过程失败。Visual Studio中的“Web发布活动”日志显示“由于发生套接字错误(100

我有一个ASP.Net Core web应用程序(DotNetCore.1.0.1 VS2015Tools.Preview2.0.2),我正试图通过Visual Studio将其发布到Azure应用程序服务

Azure应用程序服务和资源组都是全新的

“执行命令[“C:\Program Files(x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe””几分钟后,发布过程失败。Visual Studio中的“Web发布活动”日志显示“由于发生套接字错误(10054),正在重试同步。正在对对象sitemanifest(sourcePath)执行“序列化”操作,尝试100次中的第1次。”还有很多错误,但这是第一个错误

我在ASP.NETCore中经常遇到这个问题,但从来没有真正解决过,因为它只是偶尔会起作用

有人能解释一下吗

我的Publish.ps1如下

[cmdletbinding(SupportsShouldProcess=$true)]
param($publishProperties=@{}, $packOutput, $pubProfilePath)

# to learn more about this file visit https://go.microsoft.com/fwlink/?LinkId=524327

try{
    if ($publishProperties['ProjectGuid'] -eq $null){
        $publishProperties['ProjectGuid'] = '28343c8d-220f-435e-9b48-bf90a3b9068d'
    }

    $publishModulePath = Join-Path (Split-Path $MyInvocation.MyCommand.Path) 'publish-module.psm1'
    Import-Module $publishModulePath -DisableNameChecking -Force

    # call Publish-AspNet to perform the publish operation
    Publish-AspNet -publishProperties $publishProperties -packOutput $packOutput -pubProfilePath $pubProfilePath
}
catch{
    "An error occurred during publish.`n{0}" -f $_.Exception.Message | Write-Error
}

实际上,我从未遇到过它。你是如何发布的-git?visual studio?此外,它是否只发生在asp.net核心应用程序中?我通过visual studio中的“发布”按钮发布(右键单击项目>发布>选择你的应用程序服务等)。是的,只有ASP.Net核心应用程序我猜在本地使用IIS Express运行它是有效的?它说的原因是该站点留下了一个
App\u Offline.htm
,可能是因为部署中途失败。您可以使用删除它。它位于
D:\home\site\wwwroot
中。