Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Real World .NET, C#, and Silverlight: Indispensible Experiences from 15 MVPs
This is the forum to discuss the Wrox book Real World .NET, C#, and Silverlight: Indispensible Experiences from 15 MVPs by Bill Evjen, Dominick Baier, György Balássy, Gill Gleeren, David Giard, Alex Golesh, Kevin Grossnicklaus, Caleb Jenkins, Jeffrey Juday, Vishwas Lele, Jeremy Likness, Scott Millett, Christian Nagel, Daron Yondem, Christian Weyer; ISBN: 978-1-1180-2196-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Real World .NET, C#, and Silverlight: Indispensible Experiences from 15 MVPs section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 22nd, 2012, 10:18 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Consume WCF services in MVVM

Dear All,

I have went through the book [Read Word .net c# and Siverlight 15 mvps].
The book was really superb, i have implemented a mvvm pattern and i am trying to consume wcf services in view model usin below code

private readonly ICustomerServiceAgent customerServiceAgent;

private string status;

private ObservableCollection<Customer> customers;

[ImportingConstructor]
public HelloWorldViewModel(ICustomerServiceAgent serviceAgent)
{
this.customerServiceAgent = serviceAgent;
this.LoadCustomersCommand = new DelegateCommand(this.LoadCustomers, this.CanLoadCustomers);
this.status = "Ready";
}
..................
Error:ResolutionfailedException...........
Resolution of the dependency failed type= viewmodel= none.........
ICustomerServiceAgent interface connot be constructed

Please suggest how to solve error and consume wcf service in mvvm sample code.......chapter 7 mvvm framework

Last edited by Hambeere; January 23rd, 2012 at 03:57 AM. Reason: add chapter name
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Domain WCF Data Services & jQuery R4VEN ASP.NET 4 General Discussion 0 November 29th, 2011 01:11 AM
Good Books for Beginners using WCF Services dotnetDeveloper Windows Communication Foundation 1 February 11th, 2009 11:01 PM
consume a webservice mj1223 Classic ASP XML 2 July 9th, 2008 04:21 PM
WCF endpoint error when wrapping WCF service with jdawg1979 Visual Studio 2008 0 July 8th, 2008 11:56 AM
How to consume a web service jlwilliamson .NET Web Services 7 November 14th, 2006 10:08 AM



All times are GMT -4. The time now is 03:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.