Visual Studio 2015发布WebJobs问题 [英] Visual Studio 2015 Publish WebJobs Issue

查看:111
本文介绍了Visual Studio 2015发布WebJobs问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用鼠标右键单击VisualStudio 2015中的发布为Azure WebJob ..."选项,即可发布作业,但似乎会忽略runMode.

Using the right-click, Publish as Azure WebJob... option in VisualStudio 2015, the job is published however the runMode seems to be ignored.

在我的文件中,我具有以下设置,但是在发布后,该作业会在门户中连续设置为按需作业:

In my file, I have the following settings, however the job is continually set to an On Demand job in the portal after publishing:

{
  "$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json",
  "webJobName": "MyJob",
  "startTime": "2015-07-21T00:30:00-08:00",
  "endTime": null,
  "jobRecurrenceFrequency": "Day",
  "interval": 1,
  "runMode": "Scheduled"
}

将Visual Studio 2015与适用于.NET 2.7的Azure SDK一起使用

Using Visual Studio 2015 with the Azure SDK for .NET 2.7

这是发布后输出窗口中的错误 错误:创建Web作业计划时发生错误:无法从程序集"Microsoft.IdentityModel.Clients.ActiveDirectory,版本= 2.16.0.0,文化=中性,PublicKeyToken = 31bf3856ad364e35中加载类型'Microsoft.IdentityModel.Clients.ActiveDirectory.ActiveDirectoryAuthenticationException" '.

Here is the Error in the output windows after publishing Error : An error occurred while creating the WebJob schedule: Could not load type 'Microsoft.IdentityModel.Clients.ActiveDirectory.ActiveDirectoryAuthenticationException' from assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.16.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

推荐答案

基于该错误,问题在于您必须登录Visual Studio中的Cloud Explorer才能正确计划作业.

Based off of the error, the issue is that you must be logged into Cloud Explorer within Visual Studio for the job to be scheduled properly.

如果您尚未登录,该作业仍将发布,但是仅按需提供.

The job will still publish if you are not logged in, however it will only be available OnDemand.

这篇关于Visual Studio 2015发布WebJobs问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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