views:

189

answers:

1

I have a WPF application which runs perfectly fine on vista/7 but on Windows XP it chucks up the System.Windows.Markup.XamlParse error, and it's quite frustrating because I have a hell of a lot of controls in my application and I don't know what is causing the problem.

Can anyone shine some light here?

A: 

This is often caused by one of your control templates using something from the PresentationFramework.Aero assembly. This can happen if you modify templates by using "Edit a Copy" in Blend. This will generate a XAML copy of the currently active template for the system Theme under which Blend is running. In the case of Vista or Win7 that's Aero by default (Classic for XP). Many of the default Aero templates contain custom elements (ButtonChrome, etc.) that are specific to the Aero theme and declared in the Aero assembly. When running on XP the Aero assembly usually isn't available and so you get missing references in your XAML at runtime.

Do a text search on your whole solution for "PresentationFramework.Aero" and you should find some xmlns declarations using it.

John Bowen
Hi thanks for the reply, I did the search and nothing came up in the whole solution with the PresentationFramework.Aero ... I've changed colors for textboxes that's about it, I don't know what else to do.
Sandeep Bansal
"I don't know what else to do." As discussed in comments to the question: post the exception information.
itowlson
OK I installed both blend and vs 2010 in a XP VM and got the Exception it's producing.The file is located at: http://www.sinvise.net/stacktrace.txt
Sandeep Bansal
It looks like the Exception is coming from trying to create an icon for the window. Are you setting Icon on your Window?
John Bowen