Visual Studio 2017 RC installation error 0x80131500 Failed to deserialize packages

I am trying to install a new Visual Studio 2017 RC on one of my computers. The first attempt failed during boot due to insufficient free disk space. After that, each attempt to install it again results in a / excpetion error:

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
  • manually delete C: \ Program Files (x86) \ Microsoft Visual Studio *
  • already installed components (Core Framework, Win SDK, etc.) are removed.
  • remote viewing of Visual Studio 15

I suppose that somehow the installer cannot get information about which products are already installed. One line before excrement:

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

I already know that failed installations of Visual Studio are sometimes so confused that only reinstalling the OS solves the problem. But before I do this, maybe someone has a solution or a hint - basically its the β€œjust” json parsing problem ...

+5
source share
3 answers

Typical solution: 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

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

there was a problem. The json parsing bug was obvious. I renamed / deleted the file and the setup works like a charm.

+9
source

I had to delete a folder with an 8-character hexadecimal string, after which it worked.

 %ProgramData%\Microsoft\VisualStudio\Packages\_Instances\ 
+2
source

I deleted this 8-character folder, the installation starts again. There is no resume. Then in the second installation, this problem appears again, but for another part of Visual Studio (Azure). It is not clear to me how many times I need to restart the installation from scratch in order to install this product.

I would blame this problem before the leadership in visual studio for the fact that they lack respect for the development team.

0
source

Source: https://habr.com/ru/post/1259923/


All Articles