Last post Aug 26, 2013 12:47 PM by BillTheCoder
Aug 23, 2013 05:42 PM|BillTheCoder|LINK
I am having breakpoint troubles. I launch VS2012 launched 'As Administrator' and add an "Existing Website". This website contains nothing more than a single C# ASP.Net generic handler .ashx text file and an all-but-empty web.config file. That's it.
No compiled code whatsoever. I set this .ashx file as the startup page in Visual Studio. Then I set a breakpoint in the ProcessRequest() method and start the website from within VS. Next I launch an external client and access my client. I can tell the
code in the .ashx file has run successfully but my breakpoint never gets hit. When I look back at my Visual Studio solution I can see my breakpoint has been disabled with the message: "breakpoint could not be hit ... symbols could not be loaded". What symbols?
I must be missing a step.
Can someone enlighten me as to how I can hit my breakpoint in my generic ASP.Net handler?
Aug 25, 2013 12:27 AM|esayas|LINK
Make sure you have the debug flag set to true inside your web.config. When you press F5 or when you click on the play button, you will see a dialog that says debugging Not enabled with two radio buttons. Click the one that says modify the web.config file
to enable debugging and then click okay. Or you can just add it manually ....
For more information on how to configure your ASP.NET application, please visit
<compilation debug="true" targetFramework="4.0"/>
Aug 26, 2013 12:47 PM|BillTheCoder|LINK
Thanks! I was never prompted with the dialog containing the radio buttons, so I make the entry to web.config manually. Once I restarted everything (seemingly a required step), my breakpoint started getting hit.