Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Web Service? [duplicate]

I am using visual studio and I have asp.net application as one project and a web service as another project.I am using web service in my asp.net application. There is some sort of problem im my webservice code.But i am unable to debug continuosly from asp.net application to web service.I put break point both in application and web service but break point not activated in web service and it shows me connection error.How can i do this while hosting on localhost?

like image 782
urz shah Avatar asked Sep 25 '12 11:09

urz shah


People also ask

How do I debug a web service?

Just set the project that has service in it to be the main project and set the service to be the main start page. If it doesn't hit the breakpoint it probably didn't load all the symbols. That happens if the project is set to, lets say, Release configuration and not Debug. Show activity on this post.

How do I debug Asmx Web service?

To install remote debugger you just need to copy msvsmon.exe from your VS installation CD or from machine where VS is already installed and start it. Then when you attach to proccess from your machine you can type in the name of your remote server and click Browse.

How do you debug a SOAP web service?

Debug Web service callouts with SOAP UIDownload the WSDL of the external system, make the call with all the required parameters and see if you get a valid response, if so then it might some issue with Salesforce making callout, else the problem is with a external system.


1 Answers

If you're running web application as startup project, try running web service in another debug instance.

You can do it by right-clicking on web service project, Debug -> Start new instance

like image 120
Mehmet Osmanoglu Avatar answered Oct 06 '22 22:10

Mehmet Osmanoglu