An error occurred while creating the WebJob schedule

后端 未结 10 762
一整个雨季
一整个雨季 2020-12-14 15:18

I an trying to publish my website along with few WebJobs but after the website and the jobs are created on the Azure Website, I see an error on the VS.NET 2013 that says:

10条回答
  •  隐瞒了意图╮
    2020-12-14 15:56

    I ran into this again in VS2017, and the root cause was the deprecation of the VS Azure Scheduler integration feature. Per David Ebbo's recommendation in the linked thread, I converted my webjobs to use the CRON scheduling feature and publish now works as expected. Note that the Always On setting must be enabled on the app.

    Some more debugging options if you're encountering this:

    • Make sure the correct publish profile (pubxml) file is being used. I had several publish profiles files for the same webjob and tried publishing with the wrong one by mistake.

    • I suggest trying first to publish the webjobs separately, one by one (rather than publish them all alongside the website).

    • If you can't get a webjob to publish, delete its Properties\PublishProfiles folder and try to publish again - you'll be greeted with a VS wizard that should get you sorted (it will recreate the pubxml files correctly).

提交回复
热议问题