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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:42:36+00:00 2026-06-04T12:42:36+00:00

I got a problem in my WP-7 app. I have an event when I

  • 0

I got a problem in my WP-7 app.
I have an event when I read from the cloud – OpenReadCompletedEventHandler,
but somehow when the event occurs the EventHandler cannot be executed.

Here is my functions:

public void SetCategories()
    //set the Companies table from Shret.net DataBase
    {
        try
        {
            WebClient webClient = new WebClient();
            Uri uri = new Uri("http://api.sherut.net/?method=Category");
            webClient.OpenReadCompleted += new OpenReadCompletedEventHandler(webClient_OpenReadCompleted);

            try
            {
                webClient.OpenReadAsync(uri);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message);
        }
    }
    void webClient_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
    {
        DataContractJsonSerializer serializer = null;
        try
        {
            serializer = new DataContractJsonSerializer(typeof(Categories));
            var categories = (Categories)serializer.ReadObject(e.Result);
            //  foreach (Company c in companies.data)

            //  MessageBox.Show(c.Name + " " + c.CompanyID+" "+c.CompanyGUID);
            //לכתוב לבסיס נתונים באפליקציה
            BuildCategoriesDB(); //build the local data base
            AddCategoriesData(categories);
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message);
        }
    }

It reads from the cloud, but it doesn’t go inside the handler: webClient_OpenReadCompleted

  • 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-04T12:42:38+00:00Added an answer on June 4, 2026 at 12:42 pm

    Check to make sure the event is being created and “thrown”.

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

Sidebar

Related Questions

I have an MFC app, it got the Document/View architecture, but set to use
I got a problem on my express server app.get('/callback/:nation/:username/?:permalink', function(req, res) { nationurl =
I've got a problem with QPainter::drawImage. I've got KameleonVNC widget to access my app
I'm skinning scrollbar in my flex app and got one problem. This white square
I got the following problem: In my Android App I am using a table
I got a strange problem lately with my eclipse build. When building my app
I've got an app that's in invite-only beta right now. Problem is, I can't
I have a problem with events stacking up. I've got a matrix of large
I have made a little app for signing up for an event. User input
I have an app that supports email subscriptions, surveys, and comment forms. I've got

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.