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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:06:44+00:00 2026-05-24T06:06:44+00:00

I recently inherited a Silverlight web project that uses WCF services to handle asynchronous

  • 0

I recently inherited a Silverlight web project that uses WCF services to handle asynchronous tasks. I recently added in a new feature, essentially copying the functionality of features that were already there, but this new one is broken. When the asynchronous method is invoked, one of the arguments doesn’t seem to get passed; instead it is just null in the called method.

Here is the method that calls the service:

public IAsyncResult BeginAssignTrucks(OutageGroupSafe outageGroup, List<Truck> trucksArrived, List<Truck> trucksRacked, AsyncCallback callback, object asyncState)
{
    return BeginInvoke("AssignTrucks",
       new object[] { outageGroup, trucksArrived, trucksRacked },
       callback,
       asyncState);
}

OutageGroupSafe is a custom type. You can see I am also passing in two objects of type List<Truck>.

So then program flow eventually gets over to the web service, and to the AssignTrucks method I asked for:

public OperationBase AssignTrucks(OutageGroupSafe outage, List<Truck> trucksArrived, List<Truck> trucksRacked)
{
    // there is stuff here but it really doesn't matter what it is for the purposes of this question
}

If I set a breakpoint at that function, I see that the parameter outage is null, even though the parameter that got passed in the other function was not! What’s more, the two Lists are perfectly fine. I have checked my code for this call a hundred times against similar calls and nothing seems wrong. Other methods are able to send objects of type OutageGroupSafe around with no problems; it’s just this new one that is being problematic. Turns out it doesn’t even matter what the type is; if I pass an int instead it’s still broken.

So how is my object getting eaten on its way to the service, while the lists aren’t?

  • 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-24T06:06:45+00:00Added an answer on May 24, 2026 at 6:06 am

    There must have been a type mismatch somewhere that was silently failing instead of throwing an error. I changed all my arguments to ints and now it works. Really stupid; wasted most of the day on this.

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

Sidebar

Related Questions

I recently inherited a VBA macro that needs to have validation logic added to
I've recently inherited a fairly large web site. The project is set up as
I have recently inherited a J2EE Struts web app that was written back in
I have recently inherited a large web project. Before taking this on, I had
I recently inherited an old merb app that uses datamapper as its orm. I'm
I recently inherited an ASP.NET project from another programmer that required consolidating two databases.
I recently inherited a small Java program that takes information from a large database,
I recently inherited a Ubuntu Hardy box that acts rather funky out-of-the-box. The first
I recently inherited an e-commerce app (Java/Struts) that I'm porting to Rails. The thing
I've recently inherited an application that makes very heavy use of session, including storing

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.