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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:11:40+00:00 2026-05-11T08:11:40+00:00

A call from a Silverlight 2.0 control to a WebService, returned via MyWebServiceNameEventArgs is

  • 0

A call from a Silverlight 2.0 control to a WebService, returned via MyWebServiceNameEventArgs is not returning contained List<> aggregates. For Example, I’ve got a Person class that has a List and List. When I trace the call I see that the person has the lists are populated appropriately. However, when it arrives via the MyWebServiceNameEventArgs the lists are null. the simple types like FirstName, DOB etc are correctly returned.

Is there something I have to do to get the enclosed aggregates to be returned?

Here’s my code:

private void btnGetPerson_Click(object sender, RoutedEventArgs e) {   var proxy = new TutorWCFServicesClient();   proxy.GetPersonWithPersonKeyOfCompleted += new EventHandler<GetPersonWithPersonKeyOfCompletedEventArgs>(proxy_GetPersonWithPersonKeyOfCompleted);   var perID = 29; // testing   proxy.GetPersonWithPersonKeyOfAsync(perID); }  void proxy_GetPersonWithPersonKeyOfCompleted(object sender, GetPersonWithPersonKeyOfCompletedEventArgs e) {   var per = e.Result;   if (per != null)   {     FirstName.Text = per.FirstName;     LastName.Text = per.LastName;     if (per.Phones != null)     {       var hPhone = (from phone in per.Phones where phone.PhoneType.ToLower() == 'home' select phone).FirstOrDefault();       var cPhone = (from phone in per.Phones where phone.PhoneType.ToLower() == 'cell' select phone).FirstOrDefault();       var wPhone = (from phone in per.Phones where phone.PhoneType.ToLower() == 'work' select phone).FirstOrDefault();        if (hPhone != null)       {         PhoneHome.Text = string.Format('({0}) {1}-{2}', hPhone.AreaCode, hPhone.Exchange, hPhone.Number);       }       if (cPhone != null)       {         PhoneCell.Text = string.Format('({0}) {1}-{2}', cPhone.AreaCode, cPhone.Exchange, cPhone.Number);       }       if (wPhone != null)       {         PhoneSchool.Text = string.Format('({0}) {1}-{2}', wPhone.AreaCode, wPhone.Exchange, wPhone.Number);       }     }   }   else   {     FirstName.Text = 'Not Found';   } } 
  • 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. 2026-05-11T08:11:40+00:00Added an answer on May 11, 2026 at 8:11 am

    Dumb error, I forgot to refresh the ServiceReference in the Silverlight app.

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

Sidebar

Related Questions

I call a service from a Silverlight application and get the crossdomainploicy error. I
Is it possible to call C++ functions/Use C++ classes from a silverlight web app?
I've got some problems parsing the response of a Last.fm API call from a
Yesterday I got a question from a collegue about Silverlight's crossdomain access policy mechanism.
I'm trying to work with the LongListSelector control from the WP7 Silverlight Toolkit. It's
I've successfully implemented a Javascript call from Silverlight (i'm calling a java applet). When
What's needed to succesfully make a crossdomain call from Silverlight?
Is it possible to call matlab functions from Silverlight / C# ?
There is this Telerik's RadTreeView (Silverlight Version) control I'd like to extend (inherit from).
I am trying to call a WCF service from a Silverlight client using channel

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.