none
How do I debug a remote WCF service hosted in Win Server 2008 IIS7?

    Question

  • How do I debug a remote WCF service hosted in Windows Server 2008 IIS7? I am running the remote debug monitor on the target machine but not seeing anything I can attach to (such as aspnet_wp).
    Friday, December 12, 2008 6:20 PM

Answers

  •  Hello,


    Thanks for choosing Microsoft Support! The first thing I wanted to clarify is in IIS 7, this process you need to attach to might be w3wp.exe.

    To do remote debugging, we need to install some components firstly, here, you might need to enable Web Server debugging too.

    Besides, in remote debugging, we need to configure our firewalls. Please refer to the link below to configure your settings:

    http://msdn.microsoft.com/en-us/library/bt727f1t.aspx  

     

    Another aspect, when remote debugging an application, we need to run the monitor on both sides and then debug our application remotely.

    For more information, please refer to this article: How to: Run the remote debugging Monitor.

     

    After we confirmed the above two things work properly, then we could begin our debugging remotely and attach our debugging session to some process.

    You could refer to Cedric Boudoya's excellent blog here, he showed us the detail steps:

    http://cedricboudoya.spaces.live.com/blog/cns!7F839BFE7AB33F87!321.entry?sa=544602281  


     

    Hoping that could help!

    Best regards,


    Roahn
    Monday, December 15, 2008 7:39 AM

All replies

  •  Hello,


    Thanks for choosing Microsoft Support! The first thing I wanted to clarify is in IIS 7, this process you need to attach to might be w3wp.exe.

    To do remote debugging, we need to install some components firstly, here, you might need to enable Web Server debugging too.

    Besides, in remote debugging, we need to configure our firewalls. Please refer to the link below to configure your settings:

    http://msdn.microsoft.com/en-us/library/bt727f1t.aspx  

     

    Another aspect, when remote debugging an application, we need to run the monitor on both sides and then debug our application remotely.

    For more information, please refer to this article: How to: Run the remote debugging Monitor.

     

    After we confirmed the above two things work properly, then we could begin our debugging remotely and attach our debugging session to some process.

    You could refer to Cedric Boudoya's excellent blog here, he showed us the detail steps:

    http://cedricboudoya.spaces.live.com/blog/cns!7F839BFE7AB33F87!321.entry?sa=544602281  


     

    Hoping that could help!

    Best regards,


    Roahn
    Monday, December 15, 2008 7:39 AM
  •  Thanks Roahn for your comments and support. I am glad that the details and screenshots in my step by step were helpful. 

    Best Regards 

    Cedric Boudoya
    Tuesday, December 30, 2008 2:22 PM