Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

How to debug WCF code that under a WCF Service Project? RSS

1 reply

Last post Jun 10, 2008 08:29 AM by Deepak Verma

(0)
  • sladapter

    sladapter

    All-Star

    43609 Points

    7908 Posts

    How to debug WCF code that under a WCF Service Project?

    Jun 09, 2008 08:10 PM | LINK

    Hi,

    Debugging WCF service works fine if I put my WCF code under my Web Project. But how do I debug WCF code which is under a separate WCF project (which is also in the same solution)? I can not manage to hit the break point set in WCF project. The code runs fine, but just not hit my break point. The message beside the break point always says "the break point will not currently be hit, no symbols have been loaded for this document".
     

    I can put my WCF code under my Web project, but the cross-reference sometimes is really annoying. Because the Silverlight Project has the Service Reference of my web project, and my web project has Silverlight link. Sometimes I change some thing in WCF service code, I need to build my Web Project first, but if Silverlight project won't compile so I can not compile my Web Project. I have to remove the Silverlight link first in order to compile my Web project, then update my service references in the Silverlight project, compile Silverlight project. Then add the silverlight link back. So now I create a separate WCF service project and put all my WCF code in that project to avoid this cross-reference issue.

    Anybody knows how to debug WCF code that is under a separate WCF Service Project?

     

     

     

    Sally Xu
    Software Engineer
    Aprimo, Inc

    Please remember to mark the replies as answers if they answered your question
  • Deepak Verma

    Deepak Verma

    Member

    54 Points

    13 Posts

    Microsoft

    Re: How to debug WCF code that under a WCF Service Project?

    Jun 10, 2008 08:29 AM | LINK

    The link http://msdn.microsoft.com/en-us/library/bb157688.aspx explains on how to step into a WCF service and the limitations.

    HTH

    Please remember to mark the replies as answers if they answered your question.

    This posting is provided "AS IS" with no warranties, and confers no rights.