我试图在我的机器上安装新的Visual Studio 2017 RC。 由于没有足够的可用磁盘空间,第一次尝试在下载期间失败。之后,每次尝试安装它都会导致以下错误/激活:
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()]
我已经尝试过:
我认为安装程序无法以某种方式获取已安装产品的信息。在重复之前的一行:
2016-11-17T16:50:08 : Verbose : Getting product summaries. [installerId: SetupEngine]
我已经知道,失败的Visual Studio安装有时会如此混乱,以至于只有重新安装操作系统才能解决问题。但在我这样做之前,也许某人有一个解决方案或提示 - 基本上它只是&#34;只是&#34;一个json解析问题......
答案 0 :(得分:9)
在Elliot Cooley( state.json )中提到的文件
%ProgramData%\Microsoft\VisualStudio\Packages\_Instances\<instance> where "instance" is an 8 character Hex string.
是问题所在。 json解析错误很明显。我重命名/删除了文件,设置就像一个魅力。
答案 1 :(得分:2)
%ProgramData%\微软\ VisualStudio的\ Packages_Instances \
我删除了8个字符的十六进制字符串文件夹。