首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >.Net框架4.5.1和4.6

.Net框架4.5.1和4.6
EN

Stack Overflow用户
提问于 2015-11-21 23:29:21
回答 6查看 4.7K关注 0票数 9

将目标框架从4.5.1更改为4.6之后,Auzure中的服务就会失败,本地部署就会正常工作。

我需要添加.Net 4.6支持吗?-我找不到我的集群中可用的框架。

谢谢

ApplicationName :fabric:/Lending20.Service.Identity管理AggregatedHealthState 错误UnhealthyEvaluations :不健康的服务: 100% (1/1),ServiceType='IdentityManagementServiceType',MaxPercentUnhealthyServices=0%。 不健康服务: ServiceName='fabric:/Lending20.Service.IdentityManagement/Identity管理服务,AggregatedHealthState='Error‘。 不健康分区: 100% (1/1),MaxPercentUnhealthyPartitionsPerService=0%。 不健康分区: PartitionId='7c68b397-fda3-491d-9e17-921cd24217ca',AggregatedHealthState=“Error”。 错误事件: SourceId='System.FM',Property='State‘。 fabric:/Lending20.Service.IdentityManagement/IdentityManagementService ServiceHealthStates : ServiceName :ServiceName: AggregatedHealthState : Error DeployedApplicationHealthStates : ApplicationName :fabric:/Lending20.Service.Id实体管理NodeName:_lending1 AggregatedHealthState : Ok HealthEvents : SourceId : System.CM属性:状态HealthState : Ok SequenceNumber:3464 SentAt : 11/21/2015 12:38:08 ReceivedAt : 11/21/2015 12:38:08下午TTL :无穷说明:已创建应用程序。RemoveWhenExpired : False IsExpired :假传递:警告->Ok= 11/21/2015 12:38:08下午,LastError = 1/1/0001 12:00:00 :00

EN

回答 6

Stack Overflow用户

回答已采纳

发布于 2015-11-22 03:18:08

.NET 4.6在Azure中使用的默认Windows 2012映像中不可用。此时,您唯一的选择是登录到每个VM并安装它。

票数 5
EN

Stack Overflow用户

发布于 2015-12-11 11:09:22

您可以使用以下ARM模板安装.NET 4.6.1。注意,它依赖于这个脚本 (由Service使用)。您还可以用任何其他PowerShell脚本替换它。

该参数是节点的基本名称。所以如果你有VM0 ..。在您的集群中,应该设置VM5 = 'VM‘。vmExtensionLoop设置为5个节点;当然,您也可以更改它。

如果使用ARM模板部署集群,则可以将其作为集群的一部分。注意,它可以减缓比例集的部署,因为它需要重新启动。

代码语言:javascript
运行
复制
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "vmName": {
      "type": "string",
      "metadata": {
        "description": "Virtual machine name."
      },
    }
  },
  "resources": [
    {
      "apiVersion": "2015-05-01-preview",
      "type": "Microsoft.Compute/virtualMachines/extensions",
      "name": "[concat(parameters('vmName'),copyIndex(0), '/CustomScriptExtensionInstallNet461')]",
      "location": "[variables('location')]",
      "tags": {
        "displayName": "CustomScriptExtensionInstallNet461"
      },
      "properties": {
        "publisher": "Microsoft.Compute",
        "type": "CustomScriptExtension",
        "typeHandlerVersion": "1.4",
        "autoUpgradeMinorVersion": true,
        "settings": {
          "fileUris": [ "https://gist.githubusercontent.com/aelij/7ea90dda4a187a482584/raw/a3e0f946d4a22b0af803edb503d0a30a263fba2c/InstallNetFx461.ps1" ],
          "commandToExecute": "powershell.exe -ExecutionPolicy Unrestricted -File InstallNetFx461.ps1"
        }
      },
      "copy": {
        "name": "vmExtensionLoop",
        "count": 5
      }
    }
  ]
}
票数 17
EN

Stack Overflow用户

发布于 2017-02-09 13:16:32

使用windows 2016映像获取.net 4.6.1。预装。vmImageSku:“2016-数据中心”(2016Datacenter)是指集群的内容。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33849871

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档