Solved

WCF Service Reference not updating properly

Posted on 2008-10-14
2
1,143 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Parse CSS value with RegEx 2 41
Log4Net custom Appender not being fired. 5 44
.xltm file opens as .xlsx file 3 37
asp.net mvc5 3 38
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now