gpt4 book ai didi

azure - 创建 WebJob 计划时出错

转载 作者:行者123 更新时间:2023-12-03 08:35:51 26 4
gpt4 key购买 nike

我尝试发布我的网站以及一些 WebJobs,但在 Azure 网站上创建网站和作业后,我在 VS.NET 2013 上看到一个错误,内容如下:

Error   948 An error occurred while creating the WebJob schedule: No website could be found which matches the WebSiteName [mysitename] and WebSiteUrl [http://mysitename.azurewebsites.net] supplied

我的网站有 2 个 WebJobs,其中 1 个连续运行并且已创建并运行,但需要按计划触发的 WebJobs 出现了此问题。

关于这里可能出什么问题有什么想法吗?

编辑 1

只是想补充一下,计划作业是作为“按需”创建的

这是我正在使用的发布设置:

{
"$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json",
"webJobName": "ArchiveShipments",
"startTime": "2015-01-11T00:00:00+05:30",
"endTime": null,
"jobRecurrenceFrequency": "Day",
"interval": 1,
"runMode": "Scheduled"
}

顺便说一句,在我应用AzureSDK之后。 2.5 我在发布时没有看到任何错误,但未创建计划的 WebJob。

最佳答案

对我来说,当我从部署到一个 Azure 帐户切换到另一个帐户时,就会发生这种情况。在 Visual Studio 中,打开/展开服务器资源管理器侧窗口,右键单击 Azure,选择“连接到 Microsoft Azure 订阅...”。系统会要求您注销并使用新凭据登录。 enter image description here

关于azure - 创建 WebJob 计划时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27964254/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com