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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:04:40+00:00 2026-06-13T09:04:40+00:00

I have a wcf service which has a method as follow: public void SyncClient(List<Client>

  • 0

I have a wcf service which has a method as follow:

 public void SyncClient(List<Client> client)
        {
         }

then i call this in a lib solution which has reference to this service as follow:

WCF.SyncClient wcfSer = new WCF.SyncClient();
 List<Client> clientModified = secondservice.Get_Clients(ModifiedDate, modifiedUnt).ToList();
wcfSer.SyncClient(clientModified);

but I keep on getting the following error :

The best overloaded method match for 'SyncClient(SyncLib.ClientWCF.Client[])' has some invalid arguments    
cannot convert from 'System.Collections.Generic.List<SyncLib.Client>' to 'SyncLib.WCF.Client[]'

The only thing I am doing is getting the list populated with another web service.

what is the problem here as the argument that I am passing is list and the method accepts list, can some one please point me to right direction.

  • 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-13T09:04:42+00:00Added an answer on June 13, 2026 at 9:04 am

    This is down to how you added the service reference.

    You can either amend your code to send client[]

    WCF.SyncClient wcfSer = new WCF.SyncClient();
     var clientModified = secondservice.Get_Clients(ModifiedDate,
        modifiedUnt).ToArray();
    wcfSer.SyncClient(clientModified);
    

    or re-add the reference and select the option to use System.Collection.Generic.List as below;

    Select Add Reference
    Select URL
    Select Advanced when you have found the service.
    In Datatype, you will see these options.
    

    Select Collection Type as System.Collection.Generic.List

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

Sidebar

Related Questions

I have a WCF service which has one method returning a stream. [ServiceContract] public
Let's say I have a WCF service which has a method returning object Person.
I have created a WCF service, now this WCF service has to call a
I have a simple WCF service which has a method that returns a complex
I have written a .NET Windows service which has a WCF service built into
I have a WCF service which exposes a Generic interface (and the service has
I have a WCF service which has two methods exposed: Note: The wcf service
I have a WCF service which exposes a method that returns an array of
I have a WCF service in which I have a method which returns an
I have a service named WcfService2 (original i know) which has an IService.cs file

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.