0

Background

I have a simple WebJob with nothing really in it right now but a Console.WriteLine and I tested publishing it to my subscription which worked, kind of - I received a message saying "An error occurred while creating the WebJob schedule: No website could be found which matches the.." but the WebJob seemed to be deployed in the Azure Management Portal (old one). And so I tried to find a solution to this error where one suggestion was to downgrade the Microsoft.Web.WebJobs.Publish package to 1.0.3.

Unfortunately, this seems to have messed things up even worse. So, now I have two seemingly identical (they are not) "Publish as Azure WebJob.." options available in my project context menu where none of them works.

Two seemingly identical options

Clicking the first option will tell me that a VS nuget package could not be loaded.

Micrsosoft.VisualStudio.Web.Publish.Core.Contracts.IWebPublishService

Clicking the second option will tell me that the version is too old or it will bring me to the Publish dialog, which will eventually tell me the same error message as initially;

C:..\Microsoft.Web.WebJobs.Publish.1.0.11\tools\webjobs.console.targets(110,5): Error : An error occurred while creating the WebJob schedule: No website could be found which matches the WebSiteName [myWebsite] and WebSiteUrl [http://myWebsite.azurewebsites.net] supplied.

I have tried to clear solution, rebuild, remove & restore all nuget packages, log into my Azure subcription in the Server explorer and explicitly selecting correct subscription before publish, restarting VS, rebooting, both http and https.

I guess the questions I am posing are:

What is going on here? Anybody else experiencing this issue? Probable solutions?

Thanks.

Community
  • 1
  • 1
Marcus
  • 8,230
  • 11
  • 61
  • 88
  • Theres a vs extension for deploying webjobs – Callum Linington May 27 '16 at 09:28
  • Here is the [link](https://visualstudiogallery.msdn.microsoft.com/f4824551-2660-4afa-aba1-1fcc1673c3d0) – Callum Linington May 27 '16 at 09:29
  • Maybe not for VS2105 - "This extension is not installable on any currently installed products.", besides, why should it be necessary to use a 3rd-party product to deploy from one Microsoft product to another - where there is an actual Microsoft implementation available? – Marcus May 27 '16 at 09:31
  • You gotta work with what you got – Callum Linington May 27 '16 at 09:37
  • Ok, thank you so much! – Marcus May 27 '16 at 09:38
  • You need to add a WebApp with the corresponding name. I also found out that if you're using Git integration for CI, you might need to add a dummy Web project to your solution and deploy that with the appropriate link to your webjob. – lopezbertoni May 27 '16 at 13:29
  • I do have a corresponding WebApp named `myWebsite` in this case. If I manually zip my binaries and go into the Azure Portal (classic) I can upload it under the WebApp and it works just fine... but of course, I would like an easier way to deploy than to zip + upload every time. – Marcus May 27 '16 at 13:43
  • @CallumLinington The link you have given is compatiable with only VS 2012 and VS 2013. I don't find any extension for VS 2015. – Venkata Dorisala Jun 01 '17 at 09:55

0 Answers0