65.9K
CodeProject is changing. Read more.
Home

How to: Debug a Sharepoint 2010 Custom Web Service

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Sep 1, 2013

CPOL
viewsIcon

13740

This tip shows how to debug a Sharepoint 2010 custom web service.

Introduction

If you want to create a Sharepoint web service, you can follow this link Walkthrough: Creating a Custom ASP.NET Web Service. When you done with creating, you might need to debug and trace it, here is how to do that.

Steps

  1. From Visual Studio, open your class library, then go to tools menu and choose attach to process

    attach process to class library

  2. Attach to process window will show, check show process from all users then scroll down to w3wp.exe -IIS worker process is a windows process (w3wp.exe) which runs Web applications-

    get the running w3wp.exe processes

  3. You might have multiple running w3wp.exe, to determine which one to pick, go to IIS then open Worker Processes.

    how to know the right w3wp.exe process

  4. You will find the processes id which runs your application's application pool.

    attach process to class library

  5. Go and choose the right w3wp.exe and know you can debug. :)