简体   繁体   English

Visual Studio 2017 RC安装错误0x80131500无法反序列化包

[英]Visual Studio 2017 RC install error 0x80131500 Failed to deserialize packages

I'm trying to install the new Visual Studio 2017 RC on one on my machines. 我正在尝试在我的机器上安装新的Visual Studio 2017 RC。 The first attempt failed during download because of not enough free disc space. 由于没有足够的可用磁盘空间,第一次尝试在下载期间失败。 After that each try of install it again results in following error/excpetion: 之后每次尝试安装它会导致以下错误/激发:

2016-11-17T16:50:08 : Error : Failed to get installed product summaries. [installerId: SetupEngine, error: JsonReaderException at    bei Newtonsoft.Json.JsonTextReader.ReadStringIntoBuffer(Char quote)

   bei Newtonsoft.Json.JsonTextReader.ParseString(Char quote, ReadType readType)
   bei Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType)
   bei Newtonsoft.Json.JsonTextReader.ReadAsString()
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   bei Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   bei Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReader reader)
   bei Microsoft.VisualStudio.Setup.Serialization.ModelSerializer`1.Deserialize(TextReader reader)
   bei Microsoft.VisualStudio.Setup.Cache.InstanceRepository.GetInstance()
   bei Microsoft.VisualStudio.Setup.Cache.CacheRepository.<GetInstances>d__25.MoveNext()
   bei Microsoft.VisualStudio.Setup.InstalledProductsProviderService.GetInstalledProductSummariesImpl()
   bei Microsoft.VisualStudio.Setup.InstalledProductsProviderService.GetInstalledProductSummaries()]

I already tried: 我已经尝试过:

  • download and run the installer again 再次下载并运行安装程序
  • manual delete C:\\Program Files (x86)\\Microsoft Visual Studio* 手动删除C:\\ Program Files(x86)\\ Microsoft Visual Studio *
  • removed already new installed components (Core Framework, Win SDK etc.) 已删除已安装的新组件(Core Framework,Win SDK等)
  • uninstalled Visual Studio 15 Preview 卸载Visual Studio 15预览

I assume that somehow the installer can't get the information which products are already installed. 我假设安装程序无法获取已安装产品的信息。 One line before the excpetion: 在重复之前的一行:

2016-11-17T16:50:08 : Verbose : Getting product summaries. [installerId: SetupEngine]

I already know that failed Visual Studio installations sometimes are so messed up that only a OS reinstall solves the problem. 我已经知道,失败的Visual Studio安装有时会如此混乱,只有重新安装操作系统才能解决问题。 But before I do this maybe someone has a solution or hint - basically its "just" a json parsing problem ... 但在我这样做之前,也许有人有一个解决方案或提示 - 基本上它只是一个json解析问题...

Orginal solution: https://developercommunity.visualstudio.com/content/problem/2877/install-error-0x80131500-failed-to-deserialize-pac.html 原始解决方案: https//developercommunity.visualstudio.com/content/problem/2877/install-error-0x80131500-failed-to-deserialize-pac.html

The file mentioned by Elliot Cooley ( state.json ) found under Elliot Cooley( state.json )提到的文件在

%ProgramData%\Microsoft\VisualStudio\Packages\_Instances\<instance> where "instance" is an 8 character Hex string.

was the problem. 是问题。 The json parsing error was obvious. json解析错误很明显。 I renamed/deleted the file and the setup works like a charm. 我重命名/删除了文件,设置就像一个魅力。

我不得不删除8个字符的十六进制字符串文件夹,然后它工作。

%ProgramData%\Microsoft\VisualStudio\Packages\_Instances\

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM