0
Reply

cant abel to create an object to recive the list returned by wcf service

Pobkula Sri Pavan

Pobkula Sri Pavan

Jul 19 2010 6:58 AM
1.7k
Hi ,
I have cteated one WCF service, method is

IEmployee

GetListUserInfo(List<IEmployee> UserInfo)

i am calling this method from Client

ServiceClient

serviceClient1 = new ServiceClient ();

List

<IEmployee> ListUser = new List<IEmployee>();

ListUser = (

List<IEmployee>)serviceClient1 .GetListUserInfo(ListUser);

List<IEmployee>)serviceClient1 .GetListUserInfo(ListUser);

// here i am geting following error


cannot convert from 'System.Collections.Generic.List<IEmployee >'
to 'System.Collections.Generic.List<object>'