Take the 2-minute tour ×

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?

share|improve this question

2 Answers 2

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.

share|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
up vote 0 down vote accepted

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

share|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

Your Answer


