XAML Error: Unexpected NONE in parse rule ElementBody ::= ATTRIBUTE

XAML Error: Unexpected NONE in parse rule ElementBody ::= ATTRIBUTE

Recently I encountered odd error and I had no clue what this error means. After doing some BINGing I found that its related to empty elements.

Unexpected NONE in parse rule ElementBody ::= ATTRIBUTE* ( PropertyElement | Content )* . ENDTAG..

So if you ever receive above error in XAML page then first thing to inspect any empty elements such as below

<phone:PhoneApplicationPage.Resources />

Once you remove empty elements .. error goes away.

Hope this helps!!!

Binary World is a Software Development company located in Atlanta, USA (since 2007). Binary World specialized in Business Intelligence, mobile, cloud computing and .Net Application Development.

Leave a Reply