Reputation: 9
I have created a silverlight app using WCF RIA Services and Entity Data Model.
In mainPage.xaml page I have dropped a button and on click of that button certain operation is performing.I have put a breakpoint on button click event, but its not hitting the breakpoint when I am clicking the button.
Kindly help regarding the same!!!
Thanks Piyush
Upvotes: 0
Views: 902
Reputation: 4868
This behavior can be caused by XAP file being opened (in some ZIP viewer) while building your solution. Visual Studio is quiet about not being able to replace the old XAP with new one and your breakpoints will be "out of sync".
Upvotes: 0
Reputation: 35544
You need to enable "Silverlight" debugging in the web project.
Open the "Properties" of the web project and goto page "Web". In the section "Debuggers" check the Checkbox "Silverlight".
Another problem could be, that your current build configuration is set to "Release". Change it to "Debug".
Upvotes: 3