无法连接到 Azure 管道,但在应用服务部署中心部署仍然有效?
Unable to connect to azure pipeline, but deploy still works in app service deployment center?
我在 Azure 应用服务部署中心不断收到此错误消息:
We were unable to connect to the Azure Pipeline that is connected to
this Web App. This could mean it has been removed from the Azure Dev
Ops Portal. If this has happened, you can disconnect this pipeline and
set up a new deployment pipeline.
问题是,它仍然说它已成功部署,但是如果您尝试访问 swagger,例如,您会收到 HTTP 错误 500(swagger 确实在本地工作)。我尝试重新启动应用程序服务,返回提交,看看是否有帮助,但没有任何效果。所有 Json 数据都经过双重检查,所以这也不是问题所在。有人知道修复方法吗?
We were unable to connect to the Azure Pipeline that is connected to this Web App. This could mean it has been removed from the Azure DevOps Portal. If this has happened, you can disconnect this pipeline and set up a new deployment pipeline.
- 错误提示当前版本中缺少文件,尝试使用新的部署管道。
- 您可能在构建管道中添加了 archive 步骤。这会导致工件在发布前被压缩。
- 在发布管道中如果使用Azure App Service Deploy任务,这在内部使用Zip Deploy,这将压缩文件。
- 删除存档步骤,将避免双重压缩。
HTTP error 500
- 确保 XML 文档文件输出在 bin 而不是 bin\Debug 或 bin\Release(针对所有构建配置验证这一点)。
我在 Azure 应用服务部署中心不断收到此错误消息:
We were unable to connect to the Azure Pipeline that is connected to this Web App. This could mean it has been removed from the Azure Dev Ops Portal. If this has happened, you can disconnect this pipeline and set up a new deployment pipeline.
问题是,它仍然说它已成功部署,但是如果您尝试访问 swagger,例如,您会收到 HTTP 错误 500(swagger 确实在本地工作)。我尝试重新启动应用程序服务,返回提交,看看是否有帮助,但没有任何效果。所有 Json 数据都经过双重检查,所以这也不是问题所在。有人知道修复方法吗?
We were unable to connect to the Azure Pipeline that is connected to this Web App. This could mean it has been removed from the Azure DevOps Portal. If this has happened, you can disconnect this pipeline and set up a new deployment pipeline.
- 错误提示当前版本中缺少文件,尝试使用新的部署管道。
- 您可能在构建管道中添加了 archive 步骤。这会导致工件在发布前被压缩。
- 在发布管道中如果使用Azure App Service Deploy任务,这在内部使用Zip Deploy,这将压缩文件。
- 删除存档步骤,将避免双重压缩。
HTTP error 500
- 确保 XML 文档文件输出在 bin 而不是 bin\Debug 或 bin\Release(针对所有构建配置验证这一点)。