I've followed Walkthrough: Creating a Custom ASP.NET Web Service and everything works fine. I just want to know how to enable debugging for this web service over network. Could you help me?


You can create a client console application for debugging purposes.

Follow the next Steps:

A) Create a Console Application

enter image description here

B) In the Solution Explorer, right-click on your project and select Add Service Reference. and the Add Service Reference dialog, click the Advanced button.

enter image description here

C) In the Service Reference settings dialog, click on the Add Web Reference button.

enter image description here

D) In the "Add Web Reference" dialog, enter your web service URL. for example : http://myserver/_layouts/mywebservice/mywebservice.asmx press enter, and you'll see your methods. Finally press on the "Add Reference" button.

enter image description here

This way you can debug your web service using a console application.

| improve this answer | |
  • thank you for your reply, i need to trace into the web service, i've a piece of code which throws an exception and i need to trace it – Hager Aly Jan 9 '13 at 11:25

i know it has been long time ago, but i hope it helps some one kindly check the following link: Debug Sharepoint Web Service

| improve this answer | |
  • Hager, please add at least some high-level information regarding the answer. Blogs posts and sometimes entire blogs get deleted. Having at least some information will ensure that others can gain some value from your question/answer in the future. – Robert Kaucher Aug 20 '13 at 15:23
  • Hager, the link is dead. Can you add details about it here? – love thakker Dec 19 '16 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.