I have class A defined in WCF service layer as below in a .NET solution:
namespace Data
{
public class A
{
public int x {get; set;}
public B obj {get; set;}
}
}
class B is also defined within same namespace. Now, class A is not used as a return type of any methods in the contract/methods exposed in interface of the WCF service whereas class B is used for some methods as their return type. I want to use Class A as it is in the web MVC layer of the solution, but when I update the service reference of the WCF service in the solution, only class B is available, and when I try to initiate an object of class A, it is not available and throws “The type of namespace name could not be found…’error. Please let me know what needs to be done to make class A visible/available in proxy
Tried removing class A and added back. Did not resolve the missing reference build error. Added the class A in interface with DataContract attribute/annotation but still it is not visible/available in proxy class
user26814060 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.