In Windows Phone 8, I keep getting a System.WIndows.Markup.XamlParseException

后端 未结 4 1223
礼貌的吻别
礼貌的吻别 2021-01-21 04:38

The error message I get is

A first chance exception of type \'System.Windows.Markup.XamlParseException\' occurred in System.Windows.ni.dll

相关标签:
4条回答
  • 2021-01-21 05:06

    Just add the permission in your manifest file.

    1. Go to WMAppmanifest.xml
    2. Select the "Capabalities" tab
    3. Now check "ID_CAP_MAP"
    0 讨论(0)
  • 2021-01-21 05:09

    Found the issue! I was able to find more information regarding the exception by:

    1. Debug->Exceptions
    2. Press Add and type in, "System.Windows.Markup.XamlParseException" and select Common Language Runtime Exceptions
    3. Run again and it will pinpoint the exact line number causing the exception.

    It turned out to be a simple typo.

    0 讨论(0)
  • 2021-01-21 05:11

    I had a similar problem to this and found that re-adding the click events fixed it.

    It occurred when I copied the xaml from another xaml page.

    0 讨论(0)
  • 2021-01-21 05:14

    Strg+Alt+F7 of the Application in VS Express helped after WP8-Update.

    0 讨论(0)
提交回复
热议问题