Azure service fabric VS2017更新至26403导致服务结构问题
昨天,我用最新的可用更新(现在是26403.0版本)更新了VS2017。执行此操作后,我遇到了一些服务结构问题:Azure service fabric VS2017更新至26403导致服务结构问题,azure-service-fabric,Azure Service Fabric,昨天,我用最新的可用更新(现在是26403.0版本)更新了VS2017。执行此操作后,我遇到了一些服务结构问题: 首先,它将我的Service Fabric core/SDK安装从5.5.216/2.5.216恢复到5.4.145.9494/2.4.145.9494。我在打开解决方案时注意到了这一点,并收到了以下警告: 通过使用WebPI再次安装最新的core/SDK,这一问题得到了解决 使用VSF5构建,我能够在默认的C驱动器上创建集群并运行我的应用程序。但是,我通常使用此Powershel
& "C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1" -PathToClusterDataRoot d:\SfDevCluster\data -PathToClusterLogRoot d:\SfDevCluster\log -Auto -CreateOneNodeCluster
Cluster manifest validation failed with exception System.ArgumentException: Error occurs in section Diagnostics, parameter System.Fabric.Management.ServiceModel.SettingsOverridesTypeSectionParameter. The error message is System.ArgumentException: Section Diagnostics parameter EnableCircularTraceSession found in cluster manifest but not Configurations.csv in system.fabric.management.dll.
at System.Fabric.Management.WindowsFabricValidator.WindowsFabricSettings.MergeConfigurationsAndClusterManifest(Dictionary`2 configurations, Dictionary`2 clusterManifest, Boolean skipValidation)
at System.Fabric.Management.WindowsFabricValidator.WindowsFabricSettings.MergeConfigurationsAndClusterManifest(Dictionary`2 configurations, Dictionary`2 clusterManifest, Boolean skipValidation)
at System.Fabric.Management.WindowsFabricValidator.WindowsFabricSettings..ctor(ClusterManifestType manifest, Boolean skipValidation)
at System.Fabric.FabricDeployer.FabricValidatorWrapper.ValidateAndEnsureDefaultImageStore() Test-ServiceFabricClusterManifest : Cluster manifest validation failed with exception System.ArgumentException: Error occurs in section Diagnostics, parameter System.Fabric.Management.ServiceModel.SettingsOverridesTypeSectionParameter. The error message is System.ArgumentException: Section Diagnostics parameter EnableCircularTraceSession found in cluster manifest but not Configurations.csv in system.fabric.management.dll.
at System.Fabric.Management.WindowsFabricValidator.WindowsFabricSettings.MergeConfigurationsAndClusterManifest(Dictionary`2 configurations, Dictionary`2 clusterManifest, Boolean skipValidation)
at System.Fabric.Management.WindowsFabricValidator.WindowsFabricSettings.MergeConfigurationsAndClusterManifest(Dictionary`2 configurations, Dictionary`2 clusterManifest, Boolean skipValidation)
at System.Fabric.Management.WindowsFabricValidator.WindowsFabricSettings..ctor(ClusterManifestType manifest, Boolean skipValidation)
at System.Fabric.FabricDeployer.FabricValidatorWrapper.ValidateAndEnsureDefaultImageStore()
At C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Scripts\ClusterSetupUtilities.psm1:406 char:5
+ Test-ServiceFabricClusterManifest -ClusterManifestPath "$manifest ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Test-ServiceFabricClusterManifest], ClusterManifestValidationException
+ FullyQualifiedErrorId : TestClusterManifestErrorId,Microsoft.ServiceFabric.Powershell.TestClusterManifest
同样在更新之后,当我从调用SF有状态服务的ASP.NET核心无状态服务调用方法时,我也会遇到一个运行时引用错误。这只发生在我的ASP.NET核心项目中,我在同一个解决方案中的另一个Web Api 2项目能够调用相同的有状态服务方法,没有问题。我不确定这与VS更新有什么关系,但它不是在最新更新之前发生的。我的解决方案中的所有项目都加载了Newtonsoft.Json 10.0.2(最新版本),所以我不确定10.0.0是指哪里。我将对这一部分进行更多的调查——我只是认为如果其他人在更新VS后也有类似的问题,这可能会有所帮助
{"Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed"}
任何帮助都将不胜感激 在诊断下的本地群集清单中是否有此设置?EnableCircularTraceSessionies-设置为true。更新visual studio后,我遇到了相同的错误。我发现安装azure tools 2.5的唯一解决方案是完全卸载/安装vs 2017。我不得不下载最新的VS2017安装程序,并再次下载所有需要的6.4GB。我尝试了很多方法,但完全重新安装是唯一有效的方法。我看不到任何其他选项可以更新azure sdk感谢@TonyFabian的提示-这是一个很大的痛苦,但我会尝试一下。因此,使用WebPI重新安装修复了core/sdk版本降级问题。D驱动器上的集群部署刚刚开始工作-不知道为什么,因为我没有做任何更改。而Newtonsoft.Json的问题似乎与10.0.2有关——当我回滚到10.0.1时,它运行良好。