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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:50:31+00:00 2026-05-24T02:50:31+00:00

I have a WPF desktop application ( .NET 4.0 ) that is talking to

  • 0

I have a WPF desktop application ( .NET 4.0 ) that is talking to an existing asmx service that was written using .NET 2.0
Here is the code we are using to access the service

 Stopwatch s = new System.Diagnostics.Stopwatch();
    s.Start();             
    APMService svc = new APMService();
    UserInfoExtended[] Users = svc.FindAllUsers(LicenseKey);
    s.Stop();
   TimeSpan ts = s.Elapsed;
   string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
                     ts.Hours, ts.Minutes, ts.Seconds,
                     ts.Milliseconds / 10);
    MessageBox.Show("WS CALL" + " :  " + elapsedTime);
return Users;

Ok now when I run this code for the first time ( its hooked up to a button click ) it takes about 19 seconds. When I click the button again it takes less than one second. This is 100% repro. What makes this baffling is I wrote a console client against the webservice ( .NET 2.0 ) and it takes less than one second every time. what am I missing here.
Is this a WPF thing? the way it interacts with the (de)serializer for the asmx service . Is the fact that the service is on .NET 2.0 causing an issue.
Any suggestions welcome
Thanks

  • 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-24T02:50:32+00:00Added an answer on May 24, 2026 at 2:50 am

    The first thing I’d do is fire up Fiddler to monitor the actual request. This allows you to see if the delay is in the actual call or in the proxy class.
    If it’s in the call, you should look for an explanation within the service. If not, try profiling your code in Visual Studio. It could give you some insight as to where the delay is in code.

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

Sidebar

Related Questions

We have created a beautifully designed .NET WPF desktop application. We are installing the
I'm starting to develop a Desktop application using WPF (.net 3.5 sp1, with VS
I also have a desktop application written in Windows Forms that is a middling
I have a WPF application in VS 2008 with some web service references. For
I have the database mysql. I need to access it via a desktop application
We have some applications (web and WPF) that call WCF services to access data.
I have WPF 4 desktop-based application. In one of the windows of this application,
My WPF desktop-based application uses ADO.Net Entity Framework in order to connect to SQL
I created a WPF Desktop application and have tried deploying it to vista without
I have a C# WPF desktop application which uses SQL Compact 3.5 as its

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.