嗨Arben Sabani,
谢谢你在MSDN论坛上发帖。
请尝试按照以下步骤进行问题排查:
1。通过参考启动Visual Studio安装。
***的问候,
Hi
I hope some one can help. I am getting the following error when I try to install Visual Studio 2017. I already had it installed on Windows 7 but after upgrade I could not start it and decided to uninstall and re-install it. Now I am getting the following
error log:
Error Information
AppInsightsEvent Name = vs/setup/bootstrapper/error
Description = XamlParseException
TelemetrySession = 'fa976ae7-911d-4f8e-863c-cacf459a99be' Started = True OptIn=True IsInitialized = True Cloned = False
UTC time = 2017-11-27T00:23:51
Exception:
System.Windows.Markup.XamlParseException
Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception.
System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
Microsoft.VisualStudio.Setup.Bootstrapper.Bootstrapper..ctor(IServiceProvider serviceProvider, ProgramOptions options)
Microsoft.VisualStudio.Setup.Bootstrapper.Program.Run(String[] args)
Inner Exception:
System.Runtime.InteropServices.COMException
UCEERR_RENDERTHREADFAILURE (Exception from HRESULT: 0x88980406)
System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
System.Windows.Media.MediaContext.CompleteRender()
System.Windows.Media.MediaContext.CreateChannels()
System.Windows.Media.MediaSystem.ConnectChannels(MediaContext mc)
System.Windows.Media.MediaContext..ctor(Dispatcher dispatcher)
System.Windows.Media.MediaContext.From(Dispatcher dispatcher)
System.Windows.Media.Visual.VerifyAPIReadWrite()
System.Windows.Media.VisualCollection.Add(Visual visual)
System.Windows.Controls.UIElementCollection.AddInternal(UIElement element)
MS.Internal.Xaml.Runtime.ClrObjectRuntime.Add(Object collection, XamlType collectionType, Object value, XamlType valueXamlType)
Telemetry Session Shared Properties:
VS.Core.User.Id = 542076ab-bf67-407f-9e7c-3a09398a7114
VS.Setup.Bootstrapper.CommandLine.Force = False
VS.Core.BuildNumber = 158
VS.Core.SemanticVersion = 15.4.4+27004.2009
VS.Core.User.IsMicrosoftInternal = False
VS.Core.ExeName = vs_setup_bootstrapper
VS.Setup.Bootstrapper.CommandLine.IsPassiveMode = False
VS.Setup.Bootstrapper.CommandLine.ResponseFile.productId = Microsoft.VisualStudio.Product.Community
VS.Core.Machine.Id = 10b756fc-ddd5-4686-86a3-a6248a51cba8
VS.Core.TelemetryApi.ProductVersion = 15.3.799-masterDDDBA9E4
VS.Core.OS.Version = 10.0.15063.0
VS.Setup.Bootstrapper.CommandLine.CampaignId = 1737034560.1511709524
VS.Core.User.Location.GeoId = 223
VS.Setup.Bootstrapper.CommandLine.IsQuietMode = False
VS.Setup.Bootstrapper.CommandLine.ResponseFile.channelUri = https://aka.ms/vs/15/release/channel
VS.Core.ParentProcessName = vs_community__1737034560.1511709524
VS.Core.MacAddressHash = b1e0794c37777939adf58a9c8a2d6064bbf4c7c4dca4ed9fddc2f130f1c76a84
VS.Core.User.Type = External
VS.Core.User.PersonalizationVsid = a711515d-424b-610d-a045-eef3de8b58b6
VS.Core.User.IsOptedIn = True
VS.Setup.Bootstrapper.CommandLine.ResponseFile.channelId = VisualStudio.15.Release
VS.Setup.Bootstrapper.CommandLine.StartupType = Install
VS.Core.ExeVersion = 1.12.158.19022
VS.Core.SkuName = VS Bootstrapper
VS.Setup.Bootstrapper.CommandLine.ActivityId = e222b335-318c-4b27-871b-bb9be6fa5d32
VS.Core.ParentProcessProductVersion = 15.4.27004.2009
VS.Setup.Bootstrapper.CommandLine.NoWeb = False
Telemetry event 'vs/setup/bootstrapper/error' properties:
[VS.Setup.Bootstrapper.ReturnCode] = '5002'
[VS.Setup.Bootstrapper.ErrorType] = 'XamlParseException'
[VS.Setup.Bootstrapper.Error] = 'Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception.'
[VS.Fault.WatsonOptIn] = 'PropertyOptIn'
[VS.Fault.Exception.ModuleVersion] = '15.3.799.56795'
[VS.Fault.Exception.Offset] = '738'
[VS.Fault.WatsonReportNumber] = '0'
Telemetry event 'vs/setup/bootstrapper/error' reserved properties:
[DataModel.Severity] = '10'
[DataModel.Source] = 'DataModelApi'
[DataModel.EntityType] = 'Fault'
[DataModel.EntitySchemaVersion] = '5'
[DataModel.CorrelationId] = '943de59b-ba42-4819-95a6-5b36192c8edc'
[DataModel.ProductName] = 'vs'
[DataModel.FeatureName] = 'setup/bootstrapper'
[DataModel.EntityName] = 'error'
[DataModel.Fault.Exception.TypeString] = 'System.Windows.Markup.XamlParseException'
[DataModel.Fault.Exception.Message] = 'Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception.'
[DataModel.Fault.Exception.StackTrace] = 'System.Windows.Markup.XamlReader.RewrapException(Exception,IXamlLineInfo,Uri)
System.Windows.Markup.WpfXamlLoader.Load(XamlReader,IXamlObjectWriterFactory,Boolean,Object,XamlObjectWriterSettings,Uri)
System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader,Boolean,Object,XamlAccessLevel,Uri)
System.Windows.Markup.XamlReader.LoadBaml(Stream,ParserContext,Object,Boolean)
Microsoft.VisualStudio.Setup.Bootstrapper.Bootstrapper..ctor(IServiceProvider,ProgramOptions)
Microsoft.VisualStudio.Setup.Bootstrapper.Program.Run(String[])'
[DataModel.Fault.Description] = 'XamlParseException'
[DataModel.Fault.BucketParam1] = 'vs_setup_bootstrapper'
[DataModel.Fault.BucketParam2] = '1.12.158.19022'
[DataModel.Fault.BucketParam3] = 'vs.setup.bootstrapper.error'
[DataModel.Fault.BucketParam4] = 'Install'
[DataModel.Fault.BucketParam5] = 'https://aka.ms/vs/15/release/installer'
[DataModel.Fault.BucketParam6] = 'n/a'
[DataModel.Fault.BucketParam7] = '5002'
[DataModel.Fault.BucketParam8] = '-2146233087'
[DataModel.Fault.BucketParam9] = 'Microsoft.VisualStudio.Product.Community'
[DataModel.Fault.BucketParam10] = 'VisualStudio.15.Release'
[DataModel.Fault.IsSampled] = 'True'
CallStack Hash:5ced4440
Hi Arben Sabani,
Thank you for posting in MSDN forum.
Please try with following steps to troubleshoot:
1. Create Offline Installer by referring to
Create an offline installation of Visual Studio 2017
2. Install the three certificates included in the certificates folder of the offline installer into Local Machine Context with no further changes.
3. Follow
Install Visual Studio 2017 to start Visual Studio installation.
Best Regards,