My scenario is following..
I have created a WCF service in vs 2008.
added one reference to classlibrary1.dll
and added one Interface like
[OperationContract] string Myclass2(Class1 c);
in Iservice1.cs.
and added this method
public string Myclass2(Class1 c) { c = new Class1(); return c.Name;
}
in my service1.svc.cs.
I have compiled the webservice and build succeeded.
Now I have created one client application in vs 2005.Its a web application.Added web reference to this wcf service.Also added reference to classlibrary1.dll.
used the namespace "using localhost".
and my code goes like this
Service1 ser = new Service1(); ClassLibrary1.Class1 c = ser.Myclass2(c);
then when i compile its giving error like
Error 1 The best overloaded method match for 'localhost.Service1.Myclass2(localhost.Class11)' has some invalid arguments
Error 2 Argument '1': cannot convert from 'ClassLibrary1.Class1' to 'localhost.Class11'
I have tried all the possible way and the solution given in internet.but nothing is working.
Could nyone help me out in this regard?
Your help is highly appreciated