And*_*eas 5 visual-studio visual-studio-2017
我正在尝试在我的机器上安装新的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()]
Run Code Online (Sandbox Code Playgroud)
我已经尝试过:
我假设安装程序无法获取已安装产品的信息.在重复之前的一行:
2016-11-17T16:50:08 : Verbose : Getting product summaries. [installerId: SetupEngine]
Run Code Online (Sandbox Code Playgroud)
我已经知道,失败的Visual Studio安装有时会如此混乱,只有重新安装操作系统才能解决问题.但在我这样做之前,也许有人有一个解决方案或提示 - 基本上它只是一个json解析问题...
原始解决方案:https: //developercommunity.visualstudio.com/content/problem/2877/install-error-0x80131500-failed-to-deserialize-pac.html
Elliot Cooley(state.json)提到的文件在
%ProgramData%\Microsoft\VisualStudio\Packages\_Instances\<instance> where "instance" is an 8 character Hex string.
Run Code Online (Sandbox Code Playgroud)
是问题.json解析错误很明显.我重命名/删除了文件,设置就像一个魅力.
| 归档时间: |
|
| 查看次数: |
4078 次 |
| 最近记录: |