Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to create a WCF application(c# 4.0). When i try to take the reference of that WCF service in my website, i could not see the option to take the 'service reference'. WHaT SHOULD be done.
Please help.
Posted
Comments
Mark Salsbery 21-Jul-11 4:39am    
How are you trying to add a service reference? And to what kind of project. You should be able to choose "Add service reference..." in Visual Studio from the project menu or by right-clicking the project in Solution Explorer.

1 solution

Are you running the service in Visual Studio or actually hosting it in IIS.
Based on that, you will need to provide the right URL to the service.
 
Share this answer
 
Comments
shikhar gilhotra 21-Jul-11 4:42am    
I am using it in VS .Its a simple website application. I DONT SEE the service refereence option...I restarted my system..no joy
Mark Salsbery 21-Jul-11 14:54pm    
If you don't see the option then Visual Studio thinks the project isn't compatible with adding a WCF reference (for example, a C++/MFC project). Your "simple website application" needs to be an ASP.NET project. You can build the reference manually using the Svcutil.exe[^] utility if you need to.

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