【发布时间】:2017-02-22 23:16:02
【问题描述】:
我正在尝试通过 VSTS 中的 Release Manager 部署 Azure Web App。我知道在迁移到 dotnet core 1.1 的 MSBuild 之前,我们在 project.json 中有这个:
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.1.0-preview4-final"
},
"scripts": {
"postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
}
目前我正在使用类似的东西: dotnet publish --framework netcoreapp1.1 -c 'Release' -o 'C:\output'
生成的 web.config 有:
<aspNetCore processPath="dotnet" arugments=".\MyApp.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
但是,当通过 Kudu 将其部署到 Azure Web 应用程序时,我从 IIS 收到“HTTP 502.5 - 进程失败”异常。我认为这是因为 IIS 不理解这个 processPath。在本地,我只通过 Kestrel 运行,因为我有其他开发人员不在 Windows 机器上工作。
我是否需要针对构建的完整 .NET Framework 进行部署,或者我是否缺少允许在 Azure Web 应用程序中运行的 IIS 来托管 dotnet core 1.1 应用程序?
【问题讨论】:
标签: asp.net azure msbuild .net-core