【问题标题】:Docker for windows installer fails on PresentationFramework.Aero2Windows 安装程序的 Docker 在 PresentationFramework.Aero2 上失败
【发布时间】:2017-11-10 09:34:07
【问题描述】:

我使用的是 Windows 7 Enterprise,SP1,64 位。 我下载了“Docker for Windows installer.exe”并尝试运行它——首先只需双击,但它没有做任何事情。所以我在 CMD 中运行它,它抛出了这个错误:

    Unhandled Exception: System.Windows.Markup.XamlParseException: Set property 'Sys
tem.Windows.FrameworkElement.Style' threw an exception. ---> System.IO.FileNotFo
undException: Could not load file or assembly 'PresentationFramework.Aero2, Publ
icKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find
the file specified.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String cod
eBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&
stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntro
spection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName as
semblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMar
k& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIn
trospection, Boolean suppressSecurityChecks)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly(BamlAssembly
 bamlAssembly)
   at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlTypeToType(BamlTy
pe bamlType)
   at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlType(BamlType bam
lType, Int16 typeId)
   at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType(Int16 typeId)
   at System.Windows.Baml2006.Baml2006Reader.Process_ElementStart()
   at System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord()
   at System.Windows.Baml2006.Baml2006Reader.ReadObject(KeyRecord record)
   at System.Windows.ResourceDictionary.CreateObject(KeyRecord key)
   at System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value
, Boolean& canCache)
   at System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object
& value, Boolean& canCache)
   at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean&
 canCache)
   at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
   at System.Windows.DeferredResourceReference.GetValue(BaseValueSourceInternal
valueSource)
   at System.Windows.DependencyPropertyChangedEventArgs.get_NewValue()
   at System.Windows.FrameworkElement.OnStyleChanged(DependencyObject d, Depende
ncyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChange
dEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChange
dEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyCha
ngedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex
, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry
, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean co
erceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Obje
ct value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolea
n coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Ob
ject value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember
 property, Object value)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInf
o lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjec
tWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject
, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolea
n skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri b
aseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext par
serContext, Object parent, Boolean closeStream)
   at LightweightInstaller.Wizard..ctor(IChannelHelper channelHelper)
   at LightweightInstaller.Cmd.CommandResolver.Resolve(String[] args)
   at LightweightInstaller.Program.Main(String[] args)

我不知道该怎么办。任何想法?谢谢! :)

【问题讨论】:

  • 嗨,你能解决这个问题吗?

标签: windows docker exception windows-7 docker-for-windows


【解决方案1】:

Docker for Windows 仅在 Windows 10 上可用。如果您无法升级到 Windows 10,请考虑改用 Docker Toolbox:https://docs.docker.com/toolbox/toolbox_install_windows/

【讨论】:

  • 谢谢,我没注意到它只适用于Win10。升级现在不是一个选项,将查看工具箱是否有帮助。谢谢!
猜你喜欢
  • 2021-10-27
  • 1970-01-01
  • 2017-08-18
  • 1970-01-01
  • 1970-01-01
  • 2022-11-13
  • 2017-02-08
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多