在创建WebJob调度发生错误 [英] An error occurred while creating the WebJob schedule

查看:240
本文介绍了在创建WebJob调度发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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:

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个连续运行和它的创建和运行,但必须按计划引发的一个是有这个问题。

my website has 2 WebJobs, 1 that runs continuously and it's created and running, but the one that needs to be triggered on a schedule is having this problem.

任何想法,什么可能是错在这里?

Any ideas as to what may be wrong here?

修改1

只是想补充一点,计划作业得到的是按需

Just wanted to add that the Scheduled Job is getting created as "On Demand"

下面是发布的设置我使用:

here is the settings for publishing I am using :

{
  "$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"
}

在BTW我申请AzureSDK。 2.5我没有看到任何发布错误,但预定WebJob是没有得到创建。

BTW after i applied AzureSDK. 2.5 I don't see any error on publishing, but the scheduled WebJob is not getting created.

推荐答案

对于我来说这件事发生时,我从部署一个Azure的帐户转到另一个帐户切换。
在Visual Studio中,打开/展开服务器资源管理器侧窗口中,右键单击在Azure上,选择连接到微软的Azure订阅...。你会被要求注销并以新的凭证登录。

For me this happened when I switched from deploying to one Azure account to another account. In Visual Studio, open/expand the Server Explorer side-window, right click on Azure, select "Connect to Microsoft Azure Subscription...". You'll be asked to logout and login with new credentials.

这篇关于在创建WebJob调度发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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