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

  • SEARCH
  • Home
  • 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 7458357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:26:13+00:00 2026-05-29T13:26:13+00:00

I have a Silverlight 4 application which talks to a ‘manager’ class, which talks

  • 0

I have a Silverlight 4 application which talks to a ‘manager’ class, which talks to a WCF Service ( .net 4) , which uses the Microsoft.ApplicationBlocks.Data library to talk to my SQL database.

My issue is with exceptions not bubbling up to the Silverlight App.

What happens is, an insert to the database fails, creating an SQLException, this then throws the error further, to the generated service reference code used by the Manager, which, in the completed event handler, finds that the Error property is not null. This throws an event to the Silverlight app which displays a message to the user saying that an error has occured.

This works when I am locally debugging my application but fails silently when the appliaction is on the live/production server, no error message gets displayed.

If I generate the service reference from the wcf service running on the server (not locally), and use a local instance of my Silverlight App, it also works correctly which makes me think that the error is happening in the service reference (generated code) and Silverlight communication.

The service is hosted in a ‘hand-coded’ host application and the Silverlight app on the server is hosted in IIS. They both use http and not https.

I have scoured the Internet but found nothing that relates to this situation. I do not kill off objects, therefore preventing exceptions being returned to non-existant objects.

In short, the Manager correctly recieves and throws an event on my local system but not when deployed on the server.

WCF Experts needed please!

  • 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-29T13:26:13+00:00Added an answer on May 29, 2026 at 1:26 pm

    So, after some more fruitless searching, my collegue built a test app where he built a custom silverlight Fault Contract class based on this example:
    http://msmvps.com/blogs/theproblemsolver/archive/2009/01/27/returning-exception-information-to-a-silverlight-client-through-wcf.aspx

    Although this helped alot with getting the specific error from the service instead of the generic garbage Silverlight spews, we could still not get the error to display on the screen.

    My previous guess that the communication was failing was incorrect. Instead, it was simply the fact that the result did not have any effect on the UI Thread. We used the Dispatcher to jump back onto the UI Thread:

    Deployment.Current.Dispatcher.BeginInvoke(
                () =>
                {
                    //throw event to window which shows error window
                }
                );
    

    which displayed the true error. I still do not know exactly why this was required for the app on the Production server but it worked fine on my localhost, in debug mode or not.

    If anyone with more knowledge about the technicalities of this occurance reads this, please be so kind as to explain what really happened here.

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

Sidebar

Related Questions

I have silverlight 2.0 application and which uses WCF service to get data and
I have a Silverlight 3 application which needs to call WCF service. The WCF
I have a Silverlight 3 application which calls a traditional .NET Web Service (asmx)
I have Silverlight application which connects to a WCF service. If i open the
I have a silverlight application that uses wcf service. This application is shown from
I have a silverlight application which fetches data from a WCF Service hosted under
I have a Silverlight application which interacts with a WCF service. It periodically receives
I have a Silverlight application in which I would like to call a WCF
I have a Silverlight application that communications with an ASP.NET backend through WCF. I
I have a silverlight application which I load inside a an asp.net website via

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.