Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer

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 at 11:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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