Wednesday, July 22, 2009

Debugging WCF service hosted in local IIS

PROBLEM: debug WCF service

SOLUTION:
1.) Set the breakpoints in the WCF service class.
2.) Change the build path of the WCF service application to the bin directory of the service hosted in the IIS
3.) Build the application in the debug mode.
4.) Run the application.
5.) Attach the 'W3WP' process to it. If in case you are not getting the process select "All Process" checkbox.
4.) Perform the operations and the break gets a hit.

Cheers !!!

No comments:

Post a Comment

Post a Comment