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.
Clicking the first option will tell me that a VS nuget package could not be loaded.
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.