Visual Studio Developer Center >
Visual Studio Forums
>
Visual Studio Debugger
>
ASMX webservice doesn't break on errors while debugging
ASMX webservice doesn't break on errors while debugging
- I'm building a ASPX project in Visual Studio 2008.I'm using the new Entity Framework in order to LINQ 2 MySQLI've added an ASMX webservice for my Ajax Toolkit to communicate with, and it's here it get trickyWhen debugging the ASPX pages, I expect that runtime errors in the Webservice will pause VS and show me the error,setting breakpoints kind of work, but the MySQL Entity errors simply die out, without complaining as much as they do in C# (ASPX code behind)am i doing something wrong ?
Answers
- Hello Montago,
As I understand, we have stepped into our web service project, however, VS did not stop on the line where the exception occured (for example, hightlight the line, pop up an exception assistent dialog box). If I misunderstand you, please correct me.
Please go to Tools -> Options... -> Debugging -> General, and check the "Enable the exception assistant" checkbox to bring back the exception assistant box.
Besides, please go to Debug -> Exceptions.. and check the Throw checkbox on the Common Language Runtime Exceptions to make sure the CLR exceptions were thrown.
For the machinism issues of the XML Web Service, you best choice is the XML Web Service forum.
Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework!- Marked As Answer byRoahn LuoMSFT, ModeratorTuesday, November 17, 2009 2:06 AM
All Replies
- Hello Montago,
Could I ask where did we set the breakpoint? If we set it on the line which will be executed after the exception occurs, then, the breakpoint will not get hit, and the error/exception will be displayed in the Internet Explore. Are there any complaints in the IE?
To get the breakpoint get, we could set a breakpoint at the first line of the Page_Load event and then press F10 to step over the code behind.
Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework! - Breakpoint DO get hit in the ASMX.cs file...the thing that wonders me, is why errors in the code (exceptions) didn't pause VS08 like they do in ASPX.cs filesI guess that ASMX webservices run async, and therefore not caught by Visual Studio, but instead by Explorer...
- Hello Montago,
As I understand, we have stepped into our web service project, however, VS did not stop on the line where the exception occured (for example, hightlight the line, pop up an exception assistent dialog box). If I misunderstand you, please correct me.
Please go to Tools -> Options... -> Debugging -> General, and check the "Enable the exception assistant" checkbox to bring back the exception assistant box.
Besides, please go to Debug -> Exceptions.. and check the Throw checkbox on the Common Language Runtime Exceptions to make sure the CLR exceptions were thrown.
For the machinism issues of the XML Web Service, you best choice is the XML Web Service forum.
Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework!- Marked As Answer byRoahn LuoMSFT, ModeratorTuesday, November 17, 2009 2:06 AM


