Welcome to MSDN Blogs Sign in | Join | Help

Catherine Eibner

Dynamics, SQL, .Net & getting them all to play nicely together!
Xaml Parse Exception

I have been playing around with some great tutorials on Silverlight/WPF and calling external API’s for a little CRM project I am working on. Today I came across a weird error and thought I would document it here so next time it happens – I'll know how to fix it!

So Visual Studio 2008 gives a nice split view so you can see the Xaml you’re working on & a preview of the results. I was adding Style elements to my App.xaml page – and suddenly the preview stopped displaying. I tried to compile & run the app. It compiled fine, but got to the InitialiseComponent step, and threw a very nondescript error: AG_E_Unknown_Error […]

image

Looking at my Page.xaml I also noticed that the style element I had just created & linked to was underlined in blue squiggles:

image

Turns out it was just because of an error in the style definition in the App.xaml page. Even with the intellisense prompts, I had still managed to miss something! I had forgotten to put the # in the beginning of the Foreground property colour definition. As soon as I added that & saved – all was once again happy! :)

Posted: Monday, December 01, 2008 1:40 PM by ceibner
Filed under:

Comments

AtulGupta said:

Did you try with ExpressionBlend? I haven't tried for this error, but in many other cases, I have seen blend giving more detailed error information right in designer. This may be since the VS support for SL designer is still not complete

# December 1, 2008 5:32 AM

ceibner said:

Thanks for that suggestion Atul! I haven't got Expression Blend on this laptop but will try it when I get a chance and see if it does give a more detailed suggestion as to whats missing?

# December 1, 2008 6:23 AM

William said:

Haha i just ran into something similar. In my case I had # in there correctly but instead of #12345678 i had #1234567

# March 17, 2009 12:45 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker