使用WebJob将Web App发布到Azure时卡住 [英] Stuck when publishing Web App to Azure with WebJob

查看:100
本文介绍了使用WebJob将Web App发布到Azure时卡住的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是使用WebJob SDK将WebJob添加到我的Web应用程序中.

I just used the WebJob SDK to add a WebJob to my web app.

现在,发布Web应用程序时,发布时VS卡住了(不会挂起,但也不会进展).

Now, when publishing the web app, VS is stuck when publishing (does not hang, but does not progress either).

我知道它是由WebJob引起的,因为当我删除webjobs-list.json时,它会完美发布.

I know it's caused by the WebJob because when I remove the webjobs-list.json, it publishes perfectly.

奇怪的是,单独发布WebJob(使用Publish as Azure WebJob)不会出现此问题.

Weird thing is, publishing the WebJob alone (using Publish as Azure WebJob) does not present this problem.

如果有问题,请使用.NET Framework 4.5.1. 更新:4.5没有影响.

Using .NET Framework 4.5.1 if it matters. Update: 4.5 did not make a difference.

这是问题的图像:

推荐答案

将并行项目生成的最大数量"设置为1(默认值为4)为我解决了这个问题.它位于工具>选项>项目和解决方案>生成并运行

Setting the "maximum number of parallel project builds" to 1 (default is 4) solved the problem for me. It is in Tools > Options > Projects and Solutions > Build and Run

这篇关于使用WebJob将Web App发布到Azure时卡住的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆