Solved

WCF Service Reference not updating properly

Posted on 2008-10-14
2
1,150 Views
Last Modified: 2012-05-05
I've changed the return type for a function in a WCF service from a simple object to a List<> of objects. When I update the service reference in the client project using the service, the Reference.cs class still thinks the service returns a single object.

I've tried deleting the service entirely and also updating the service reference. What's likely to be wrong?

Thanks!
0
Comment
Question by:craigdev
2 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 500 total points
ID: 22710092
the following link provides some details as how to update the references - let me know if it was helpful
http://geekswithblogs.net/MainaD/archive/2008/02/04/119287.aspx
0
 
LVL 1

Author Comment

by:craigdev
ID: 22710148
Thanks for the link... I'm using 2008 and the problem was that under "Advanced" in the Add Service Reference screen the Collection type was set to System.Array. When I changed it to Generic.List the problem went away.


0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Query Producing decimal places when it shouldn;t be 8 43
Simple Injector with Web Service 4 41
C# bracket error 3 31
Hey!!!! 1 20
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question