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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:05:23+00:00 2026-06-17T20:05:23+00:00

i have create a web service using visual studio 2010, the web service receives

  • 0

i have create a web service using visual studio 2010, the web service receives 2 integers and the stopwach, one of the parameter also includes and out statement just as show in the nex example:

 public double[][] Parameters(int N_ele, int N_carac, Stopwatch inic, out Stopwatch ini_final)

wen i create a web aplication in visual studio a have to create a web reference in order to call the web service. When i call the web service i used the next code:

webclient.Serv1 service = new webclient.Serv1();
int element, caracteristic;
System.Diagnostics.Stopwatch time_sent = new System.Diagnostics.Stopwatch();
System.Diagnostics.Stopwatch time_respond = new System.Diagnostics.Stopwatch();
servicie.Parameters(ele, caract,time_sent, out time_respond);

how ever visual studio marks and error it says: cannot convert System.Diagnostics.Stopwatch to Application1.webclient.Serv1.Stopwatch

and also the same error in the out statement, if some can help me to find the reason of the error and how to solve it. also i am using the C#, visual studio, .NET framework 4 and 3, using two different web application.

  • 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-17T20:05:24+00:00Added an answer on June 17, 2026 at 8:05 pm

    You are dealing with two classes that are both named Stopwatch. One is in the System.Diagnostics namespace, and the other is in the Application1.webclient.Serv1 namespace. Make sure that all of your Stopwatch instances are the same type of Stopwatch.

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

Sidebar

Related Questions

I have tried to create a hello world Web Service using visual studio 2008,
After installing service pack 1 for Visual Studio 2010 cannot create web site in
I made a client to consume a web service, in Visual Studio 2010, using
I have a simple web service I have created. I'm using Visual Studio 2012
I have created a Web Service in Visual Studio 2005, using VB .NET language.
I am hosting web service in a one machine using Visual studio 2008. I
I want to create tree structure using web service. I have used bottom up
I am using Visual Studio 2008 and have added a web reference that points
How do I create a folder using microsoft web deploy? Also, when I have
I am using Flex Builder 3 and visual studio 2010 I have created webService.asmx

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.