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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:32:20+00:00 2026-06-04T19:32:20+00:00

I have a Silverlight app that is getting a list of items from a

  • 0

I have a Silverlight app that is getting a list of items from a service on my website. I am passing it as an ObservableCollection with the following function:

public ObservableCollection<Dictionary<string, object>> GetItems(string transetDocId)
    {
                    ObservableCollection<Dictionary<string, object>> result = new ObservableCollection<Dictionary<string, object>>();
            foreach (DataRow dr in ((DataTable)HttpContext.Current.Session["ItemDataTable"]).Rows)
            {
                Dictionary<string, object> tempD = new Dictionary<string, object>();
                foreach (DataColumn dc in ((DataTable)HttpContext.Current.Session["ItemDataTable"]).Columns)
                    tempD.Add(dc.ColumnName, dr[dc.ColumnName]);
                result.Add(tempD);
            }
            return result;
        }

Everything was working fine. And now, with no changes that I can think of, it has started returning the following error.

The HTTP request to ‘http://www.example.com/Services/Example.svc&#8217; has exceeded the allotted timeout. The time allotted to this operation may have been a portion of a longer timeout.

I’ve stepped through the code. I’m firing off the GetItemsAsync() method in the client. The service sees the call, creates the result and returns it. But the GetChecksCompleted() method never gets hit (Yes, I’m adding an event handler). After a few minutes, I get the error.

I tried modifying the code so that it returns one long comma/semicolon/pipe delimited string instead of an observable collection and everything runs fine.

Why won’t the ObservableCollection work?

More information:
The error I’m getting actually occurs in the generated file Reference.cs in the line right before the return statement:

public System.Collections.ObjectModel.ObservableCollection<System.Collections.Generic.Dictionary<string, object>> EndGetItems(System.IAsyncResult result) {
                object[] _args = new object[0];
                System.Collections.ObjectModel.ObservableCollection<System.Collections.Generic.Dictionary<string, object>> _result = ((System.Collections.ObjectModel.ObservableCollection<System.Collections.Generic.Dictionary<string, object>>)(base.EndInvoke("GetItems", _args, result)));
                return _result;
            }
  • 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-06-04T19:32:21+00:00Added an answer on June 4, 2026 at 7:32 pm

    The problem was actually with some of the data. There was a DBNull value in some of the columns which was causing trouble during the deserialization. The error message that it was throwing was just completely off.

    I was able to figure out what was going on after enabling tracing as outlined here: http://msdn.microsoft.com/en-us/library/ms733025.aspx

    Thanks to anatoliiG for getting me going in the right direction.

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

Sidebar

Related Questions

I have a WCF web-service and a Silverlight app displaying data from that service.
I have a Silverlight app that uses actions to get data from the model
I have a silverlight app that talks to a WCF service inside of an
I have a Silverlight app that consumes a WCF service in my asp.net application.The
Right now I have a silverlight app that gets data from a mvc site.
I have a silverlight app that will be installed OOB with full trust and
I have a Silverlight app that has to load an image dynamically, depending on
In my Silverlight app I have an event handler that dynamically creates a new
I have a silverlight application that needs to talk to a rails app to
I have a Silverlight web app which uses ASP.net Website administration tool for user

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.