I have one solution WCFSampleSolution, and I have all my projects - web service, client and website. The structure looks something like this:
- WCFSampleSolution
- C: \ WCFSample \ Site
- WCFService
- WCFWebClient
I created a WCFervice project for my services. It contains IService1.cs and Service1.cs. Then I hosted the service in IIS. I did this by creating a website and adding the .svc and web.config files to the website project. Then published it in IIS. When I run http: \ MyMachineName \ Website \ Service.svc, it shows a description of the service. Then I create a web client that calls the web service. I used the service link to add the service. It calls the Service1 method. It is working fine. But I can not debug this program / setup. I checked the configuration files in the WCFWebClient project and website, and they have the correct debugging settings.
<compilation debug="true">
I set breakpoints, but control never comes to my seb service. I also tried to attach the process, but it also does not work. But I was able to debug one of my other WCF projects. The setting was a bit different. In this project, I copied the .svc file and configuration in my web client, and debugging works fine.
Please, help!
debugging web-services wcf
Sri reddy
source share