Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two WCF service(WCF1 and WCF2). WCF2 generates does some function. WCF1 has to call WCF2 on basis of some condition. I added the WCF2 service reference in WCF1.
Created object for the WCF2 and called the method,

WCF2.WCF2Client etObj = new WCF2Client();
etObj.EmployeeInterfaced();


On build i get the error WCF2

The type name 'WCF2' does not exist in the type 'WCF1.IWCF1'

Please help me
Posted
Comments
John C Rayan 17-Mar-15 6:24am    
Make sure you have referenced WCF2 and used (import) in your code. However I am not convinced with the way you are doing. Why you need two WCF service?
Member 11531733 17-Mar-15 7:39am    
WCF2 is developed by another team, it has different set of flow execute and it need to be integrated inside WCF1. sorry i dont know use import, could you explain with example
John C Rayan 17-Mar-15 7:44am    
What I mean is that the error you are getting suggests WCF2 missing its namespace. So it is C# make sure you are using right namespace 'using ..." or 'import ...' in vb.net.
Member 11531733 17-Mar-15 7:47am    
I have added the service reference and added "using WCF1.WCF2" and i get intellisense for the WCF2client but also i get this error
John C Rayan 17-Mar-15 8:08am    
Can you show us your code. It looks like something to do with WCF1 namespace may be.

Check to see that your target framework has the same .NET versions.Set the "Target Framework" of all the projects to be the same. It should work fine.
 
Share this answer
 
Make sure all service references are included.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900