IT部门将我的计算机从Windows 7升级到Windows 10,之后我的所有不同的Visual Studio版本(2012,2013,2015和2017)都停止工作,当我点击它们时,我看到初始化徽标然后我得到了一般例外:
Exception has bee thrown by the target of an invocation
经过一些调查后,有一些建议认为问题与系统变量有关,特别是 PATH 是长的,我检查了这个,我的不到2000个字符。
我尝试修复VS,卸载/重新安装,但错误不会消失,之后我下载了https://www.microsoft.com/en-us/download/details.aspx?id=12493来获取日志,这是完全例外:
Beginning of the log. Start Time: 11/6/2017 12:07:41 PM
VisualStudio Bootstrapper:11/6/2017 12:07:41 PM: Current OptIn value is 1
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Commandline arguments =
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Parent process name = vs_Enterprise
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Parent process product version = 15.4.27004.2006
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: CampaignId =
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Caught Exception: Type = XamlParseException, Message = Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception., StackTrace = at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at Microsoft.VisualStudio.Setup.Bootstrapper.Bootstrapper..ctor(IServiceProvider serviceProvider, ProgramOptions options)
at Microsoft.VisualStudio.Setup.Bootstrapper.Program.Run(String[] args)
InnerException:Type = COMException, Message = UCEERR_RENDERTHREADFAILURE (Exception from HRESULT: 0x88980406), StackTrace = at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
at System.Windows.Media.MediaContext.CompleteRender()
at System.Windows.Media.MediaContext.CreateChannels()
at System.Windows.Media.MediaSystem.ConnectChannels(MediaContext mc)
at System.Windows.Media.MediaContext..ctor(Dispatcher dispatcher)
at System.Windows.Media.MediaContext.From(Dispatcher dispatcher)
at System.Windows.Media.Visual.VerifyAPIReadWrite()
at System.Windows.Media.VisualCollection.Add(Visual visual)
at System.Windows.Controls.UIElementCollection.AddInternal(UIElement element)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.Add(Object collection, XamlType collectionType, Object value, XamlType valueXamlType)
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: General Failure. Message:Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception. Callstack: at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at Microsoft.VisualStudio.Setup.Bootstrapper.Bootstrapper..ctor(IServiceProvider serviceProvider, ProgramOptions options)
at Microsoft.VisualStudio.Setup.Bootstrapper.Program.Run(String[] args) Inner Message:UCEERR_RENDERTHREADFAILURE (Exception from HRESULT: 0x88980406) Internal Exception: at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
at System.Windows.Media.MediaContext.CompleteRender()
at System.Windows.Media.MediaContext.CreateChannels()
at System.Windows.Media.MediaSystem.ConnectChannels(MediaContext mc)
at System.Windows.Media.MediaContext..ctor(Dispatcher dispatcher)
at System.Windows.Media.MediaContext.From(Dispatcher dispatcher)
at System.Windows.Media.Visual.VerifyAPIReadWrite()
at System.Windows.Media.VisualCollection.Add(Visual visual)
at System.Windows.Controls.UIElementCollection.AddInternal(UIElement element)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.Add(Object collection, XamlType collectionType, Object value, XamlType valueXamlType)
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: Sending Watson Bucket with:
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: P1 = vs_setup_bootstrapper
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: P2 = 1.12.158.19022
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: P3 =
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: P4 = Install
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: P5 = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: P6 = n/a
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: P7 = 5002
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: P8 = -2146233087
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: P9 = Microsoft.VisualStudio.Product.Enterprise
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: P10 = VisualStudio.15.Release
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: Including dmp file
VisualStudio Bootstrapper:11/6/2017 12:07:42 PM: Watson: Including Log : C:\Users\me\AppData\Local\Temp\dd_bootstrapper_20171106120741.log
查看UCEERR_RENDERTHREADFAILURE异常我发现这篇文章https://blogs.msdn.microsoft.com/dsui_team/2013/11/18/wpf-render-thread-failures/可能与视频驱动程序有关,但在更新了所有驱动程序之后问题仍然存在。
之前有没有人遇到类似的问题可以为这个问题带来一些启示?
答案 0 :(得分:1)
我遇到了同样的问题。将Windows 7升级到Windows 10后,visual studio和visual studio安装程序无法启动。
我安装了最新的.netframework 4.7.1,问题得到解决。 希望它有所帮助
答案 1 :(得分:0)
您可以尝试重新安装其中一个visual studio版本,看看是否可以解决问题。有时,当您升级Windows时,注册表会损坏,因此已安装的程序将停止工作。我在Windows 10上运行VS2012和VS2017没有问题,所以它们应该可以正常工作。