djsolid
djsolid

Reputation: 385

Azure Webjob - Error While Deploying Scheduled Job

I am trying to upload a Webjob to my Azure Website via Web-Deploy but I'm getting the following error:

An error occurred while creating the WebJob schedule: An error occurred while sending the request.

Any ideas? (I'm a co-administrator of the subscription)

Webjob Settings: { "$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json", "webJobName": "WebJob1", "startTime": "2014-12-22T00:00:00+02:00", "endTime": null, "jobRecurrenceFrequency": "Hour", "interval": 1, "runMode": "Scheduled" }

Upvotes: 0

Views: 428

Answers (2)

Adam Brown
Adam Brown

Reputation: 1729

So. I had exactly this problem. The webjob would not publish with my website. Turns out I had an existing publish profile to a different web-app set on the webjob project itself.

This is what I did:

  • From the azure portal, I deleted the old scheduler collection and the old web app.
  • Then I deleted the publish profiles folder from the webjob's project (in the Properties folder).
  • Finally, I re-published the website and, hey-presto, the webjob published.

Upvotes: 0

Yang C
Yang C

Reputation: 536

Is there any other significance about the occurence of errer ?

Hope this post will be help.

Upvotes: -1

Related Questions