Click here to Skip to main content
13,258,479 members (55,070 online)
Click here to Skip to main content
Add your own
alternative version


1 bookmarked
Posted 31 Aug 2013

How to: Debug a Sharepoint 2010 Custom Web Service

, 31 Aug 2013
Rate this:
Please Sign up or sign in to vote.
This tip shows how to debug a Sharepoint 2010 custom web service.


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.


  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. :)


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
Egypt Egypt
I'm a software engineer, in particular a developer. For me creating a websites is not only for living also for fun, I just love creating them make them more interactive and beautiful. Development in general is so interesting but my favorite part is building website and adding JavaScript and Ajax to it.

I believe that technology has no limits and software engineers must be open minded to learn and use new technologies and methodologies.

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171114.1 | Last Updated 1 Sep 2013
Article Copyright 2013 by hagerAly
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid