Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6162793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:42:51+00:00 2026-05-23T21:42:51+00:00

I am running Silverlight 4 with a MVVM framework. From time to time, but

  • 0

I am running Silverlight 4 with a MVVM framework. From time to time, but not always, during a detail page load, I get a XamlParseException. Since it works 99% of the time, I’m pretty sure the xaml page is fine.

Is it possible to do something similar to the following in my code behind page?

public DetailView() {
  try {
    InitializeComponent();
  } catch (XamlParseException e) {
    Debugger.Break();
  }
}

In other words, how do I catch the XamlParseException?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:42:53+00:00Added an answer on May 23, 2026 at 9:42 pm

    You cannot catch this exception using try-catch when the parsing is being handled by the runtime.

    The only way to catch this exception is when you are using XamlReader like in this discussion:

    http://social.msdn.microsoft.com/Forums/da-DK/wpf/thread/02679567-1bd3-41d1-bfd1-326f646d95d1

    You can try handling it on Application_UnhandledException.

    More info here: http://msdn.microsoft.com/en-us/library/system.windows.application.unhandledexception(v=vs.95).aspx

    And some more info here: http://msdn.microsoft.com/en-us/library/cc189070(v=vs.95).aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Silverlight MVVM App's ViewModel Properties that are poupulated from a service library (not
I am trying out Silverlight's Isolated Storage feature. Currently running Silverlight thru ASP.NET page.
I have a silverlight application which users will be running in various time zones
I'm downloaded the code from John Papa's book here: http://silverlight-data.com/ and am sucessfully running
I am running OOB silverlight application where I have a WebBrowser control but I
I have a Silverlight 4 client running on a Facebook page hosted on Google
I want to get the size of the browser window running my Silverlight Application?
I'm getting a AG_E_UNKNOWN_ERROR when running my Silverlight project. The project is ported from
After downloading IE9, I found that running any Silverlight page breaks (only in IE9).
How can I find which Silverlight OOB app is running? If I get a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.