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 658471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:56:14+00:00 2026-05-13T22:56:14+00:00

I run into the following issue semi-regularly: I make changes to XAML or some

  • 0

I run into the following issue semi-regularly: I make changes to XAML or some resources used by it and when I go to load up the Silverlight project in debug mode it only gets as far as the spinning Silverlight-loading animation.

I’ve tried attaching the VS08 debugger to the process but it doesn’t do anything at this point (works fine once I’m in the Silverlight but not before.)

From previous experience I’ve noticed this happens when there’re problems with the XAML or the resources in it but my only solution so far has been to dissect the code line-by-line until I spot the problem.

Is there an easy way to debug/diagnose these situations?

UPDATE

I found this question with some help, but it still doesn’t provide a good way to debug these types of issues.

  • 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-13T22:56:15+00:00Added an answer on May 13, 2026 at 10:56 pm

    This has been a real pain to debug but I finally found the problem hidden deep in the constructor to one of our custom controls (which was looking for a resource that wasn’t there.) The real problem isn’t fixing the issue but finding it.

    I found that IE responds to exceptions in passed from Silverlight to the DOM but you don’t get that same sort of feedback in the Chrome browser (which I use.) A solution that actually helps a great deal (even moreso than the IE tip) is to modify the ReportErrorToDOM() method in App.xaml.cs to the following:

    private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
    {
        string errorMsg = String.Empty;
        try
        {
            errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
            errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
    
            System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
        }
        catch (Exception)
        {
    #if DEBUG
            MessageBox.Show(errorMsg);
    #endif
        }
    }
    

    This gives you the position in the XAML where the issue is starting. It’s not an ideal debugger, but it does help.

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

Sidebar

Related Questions

I'm currently porting a jQTouch web project to jQuery Mobile and have run into
I am developing a issue logger for my project and am running into an
I am running into the following problem with gzip.exe, be it from UnxUtils or
After upgrading to Rails 3.1 any ActiveRecord call has the following result: ArgumentError: wrong
We have a strange issue with running an Facebook IFrame application (using MVC 2).
I'm trying to profile a C++ project in Embarcadero RAD Studio 2010 . To
I'm trying to build a C++ extension for python using swig. I've followed the
I'm trying to write test harness for part of my Android mapping application. I
I am playing with TFS 2010, and am trying to setup a build process
After having read Ian Boyd 's constructor series questions ( 1 , 2 ,

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.