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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:56:30+00:00 2026-06-15T21:56:30+00:00

Here is my wcf duplex service callback interface: public interface ICallback { [OperationContract(IsOneWay =

  • 0

Here is my wcf duplex service callback interface:

public interface ICallback
{
    [OperationContract(IsOneWay = true)]
    void SendClientCallback(CallbackMessage callbackMessage);

    [OperationContract]
    void GetTemplateList(ref List<ISpecimenTemplateDescriptor> templateDescriptors, IDrawerLayout drawerLayout);
}

I configured my service reference to use the System.Collections.Generic.List type. I did this by right clicking on the service reference, selecting the configure service option, and changing the Collection type. This configured the service reference to use a collection type of List, instead of the default Array type.

When I compile and update my service reference, my interface type “ISpecimenTemplateDescriptor” and “IDrawerLayout” are converted to “System.Object” as shown below:

void GetTemplateList(ref System.Collections.Generic.List<object> templateDescriptors, object drawerLayout);

Why are my interface objects converted to System.Object in the service reference?

Here is my service contract:

[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(ICallback))]
public interface IWcfService
{
      .....
}

Here are my service behaviors:

[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Reentrant, UseSynchronizationContext = false)]
public class WcfService : IWcfService
{
    ......
}

Thanks for your help in advance!

  • 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-15T21:56:32+00:00Added an answer on June 15, 2026 at 9:56 pm

    Well, I have searched high and low. In the end I have reverted back to using serializable concrete classes instead of trying to use interfaces in my service reference.

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

Sidebar

Related Questions

Here's my WCF REST endpoint: [WebInvoke(Method = POST, UriTemplate = _test/upload)] public void UploadImage(Stream
I am creating a client service application using WCF duplex callback. The service sends
Here are my basic assumptions: Wcf executes my service operation methods on IOCP threads
Here is the problem: I have a WCF service and a few sites connecting
Here and here it is written how to convert a standard WCF Service to
Here is the situation: Silverlight 3 Application hits an asp.net hosted WCF service to
Here is the scenario, I have a WCF service call that takes one string
Here is my situation. I have written a WCF service which calls into one
I'm setting up a net.tcp WCF service using instructions here: http://blogs.msdn.com/swiss_dpe_team/archive/2008/02/08/iis-7-support-for-non-http-protocols.aspx One of the
I'm new here and I hope anyonte can help me. I have WCF Service

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.