Last post Dec 18, 2012 02:02 PM by MisterT25
Dec 18, 2012 12:09 PM|MisterT25|LINK
Using Win 7 x 64, VS 2012, .NET 2.0 Web service.
Web service code has been operational for several years. I am debugging to determine error. Using a .NET client program to send XML to Web service function.
I have many break-points in the function. I even put a break-point on the first line in the function. I Press F5, then send the XML using a client program. A reply is sent to the client program, but no break-points are activated. Debugging this way
has worked in the past.
Thanks for any ideas.
Dec 18, 2012 12:15 PM|kushalrdalal|LINK
Check your website is under Debug mode or Release mode in your visual studio.
You should find a dropdown in your visual studio in top menu from where you can select debug mode or release mode.
In release mode no break point will get hit.
Dec 18, 2012 12:19 PM|MisterT25|LINK
Thank you for your reply.
I have tried both. Neither one enables break-points.
Dec 18, 2012 12:21 PM|kushalrdalal|LINK
So your web service is in same solution as your web application?
Dec 18, 2012 12:23 PM|MisterT25|LINK
Yes - service.asmx
Dec 18, 2012 12:25 PM|kushalrdalal|LINK
Normally when you are calling any method from your web application project to web service method it will ask that would you like to attach this?
When you say yes it should go to that method for debugging.
Can you send your solution to check?
Dec 18, 2012 12:27 PM|kushalrdalal|LINK
Did you try attaching the attach to process and then attached w3wp.exe process to your web service method and tried?
Dec 18, 2012 12:28 PM|MisterT25|LINK
Let me clairify - I am calling the Web service from a Windows Forms client. This has worked in the past.
I have changed from VS 2010 to VS 2012. Maybe there is something different in VS 2012 causing this.
Dec 18, 2012 12:33 PM|MisterT25|LINK
I do not know how to do what you described. I mainly program windows Forms.
Dec 18, 2012 12:36 PM|kushalrdalal|LINK
Did you try debugging standalone web service with fiddler?
Check this article.
you should able to debug the same way it debugs wcf service.
Dec 18, 2012 12:39 PM|MisterT25|LINK
I will give that a try.
Dec 18, 2012 02:02 PM|MisterT25|LINK
I noticed that the RED debug circles were just outlines. I put the mouse over the circles and it told me disable 'require source files to match original version'. I did that and was able to stop on break points.
This is a real pain.
It is working now.
thanks for your help !!!