title: XamlParseException in WPF application - but only on when installed on XP
body: <p>My WPF application is running fine on Windows 7. Installation on XP machine brings up the following error on startup:</p>
  
  <blockquote>
    <p>Framework Version: v4.0.30319</p>
    
    <p>Description: The process was
    terminated due to an unhandled
    exception.</p>
    
    <p>Exception Info:
    System.Windows.Markup.XamlParseException</p>
    
    <p>Stack:    at
    System.Windows.Markup.XamlReader.RewrapException(System.Exception,
    System.Xaml.IXamlLineInfo, System.Uri)</p>
    
    <p>at
    System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader,
    System.Xaml.IXamlObjectWriterFactory,
    Boolean, System.Object,
    System.Xaml.XamlObjectWriterSettings,
    System.Uri)</p>
    
    <p>at
    System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader,
    Boolean, System.Object,
    System.Xaml.Permissions.XamlAccessLevel,
    System.Uri)</p>
    
    <p>at
    System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream,
    System.Windows.Markup.ParserContext,
    System.Object, Boolean)</p>
    
    <p>at
    System.Windows.Application.LoadComponent(System.Object,
    System.Uri)</p>
    
    <p>at
    MyApplication.App.InitializeComponent()</p>
    
    <p>at MyApplication.App.Main()</p>
  </blockquote>
  
  <p>I think I may be experiencing the problem described in the answer to this question:</p>
  
  <p><a href="https://stackoverflow.com/questions/2481178/xamlparseexception-on-windows-xp">XamlParseException on Windows XP</a></p>
  
  <p>as I am using PresentationFramework.Aero in places. Is there a way to fix this or will I have to remove Aero? This is a pain as I am using some ButtonChromes</p>
  
  <p>TIA</p>