R – Debug .NET 2.0 web service from VS2003

asp.netweb services

I have a web service created in a VS2005 asp.net 2.0 framework app that I need to consume in a 1.1 framework app. I built the web service – then built a little 1.1 framework tester app to call it and it worked great. So now I have added the web reference exactly the same way to the main 1.1 framework app that I need to consume it in. The web method being called is of type boolean and returns true if successful. I get back true – but the updates that the web method are supposed to perform are not occuring. When I was calling the web method from the small test app – they occured just fine.

My question is – how can I debug this from my 1.1 consumer into my 2.0 provider? MS docs say I should just be able to set a breakpoint on the call to the web service and step right in (currently in development they are both on the same machine). This does not work as it just steps right over that line of code. Any help appreciated.

Best Answer

Make sure you have <compilation debug="true"/> in both web.config files, and make sure they are both built in DEBUG mode.

Now that I think of it, that probably won't work. I presume you are debugging the .NET 1.1 code with VS2003, right? It's not going to step into .NET 2.0 code. You're going to have to start a separate VS2005 instance, attach to the process running the web service, set your breakpoints, then wait.