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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:55:06+00:00 2026-06-17T08:55:06+00:00

I use C# and Visual Studio 2012 to develop a WP8 application. I added

  • 0

I use C# and Visual Studio 2012 to develop a WP8 application. I added a service reference to my project (Add Service Reference). So I am able to use webservice functions.

client = new YChatWebService.WebServiceControllerPortTypeClient();

client.getDataCompleted += client_getDataCompleted;
client.InnerChannel.OperationTimeout = new TimeSpan(0, 0, 0, 0, 500);
client.getDataAsync(); 

void client_getDataCompleted(object sender, getDataCompletedEventArgs e)
{
    // e.Error.Message

}

I have set up a timeout limit 500ms for getData(); If the time limit is exceeded then I get following error:

“The HTTP request to ‘http://example.com/webService/index?ws=1’ has
exceeded the allotted timeout. The time allotted to this operation may
have been a portion of a longer timeout.”

That is nice 🙂 However, I would like to find out what kind of exception was thrown. Something like a string variable containing a string “TimeoutException” would be nice. How can I achive that?

  • 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-17T08:55:07+00:00Added an answer on June 17, 2026 at 8:55 am

    You could use

    if( e.Error is TimeoutException )
    

    To see if the Exception is of the type TimeoutException

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

Sidebar

Related Questions

I want to use SSIS /BIDS project in Visual Studio 2012. I have both
Let's get this out of the way... I : use Visual Studio 2012 develop
I'm trying to use Visual Studio 2012 to create a Windows Forms application that
I'm using Visual Studio 2012 to develop a SSRS page. When I use Preview
I use Visual Studio 2012, my question is: when I clicked on Project->ASP.net configuration
I use Visual Studio 2012 for a WPF project needing (at least) .NET Framework
I'm using SOAP through Visual Studio 2012 RC with C# to use the Magento
when i use char or char*, visual studio 2012(11) only couts last character such
I use Visual Studio .NET to create a Windows-based application. The application includes a
I use Visual Studio .NET to develop a component named X_Component and I plan

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.