The Breakpoint will not currently be hit: No symbols have been loaded for this document
Solution 1
Make sure you are using Internet Explorer to debug your Silverlight app. Make sure you are using Internet Explorer as your default browser. If you are not debuggin in IE, the IDE will not recognise breakpoints.
Solution 2
For me I had to go in the properties of the Web project » Web tab » Check 'Silverlight' in the Debugger section at the bottom.
Solution 3
For Silverlight applications enabling hit of breakpoint:
- In the Solution explorer right click on the Web Side of the project and select properties.
- Navigate to Web Tab, in the property window that opened.
- Scroll down and check the Silverlight option in Debugger section.
Solution 4
Clean both the regular project and Web project separately. Build the web project. Update the web reference. Build the regular project.
Solution 5
What solved it for me was turning off the read-only flag on the xap file. I think it was set by Team Foundation Server.
Related videos on Youtube
Comments
-
Grayson Mitchell almost 2 years
I am using VS2010, and Silverlight 4. When I run my code the debugging does not work (I get the above error on my breakpoints.
When I clean my solution a warning comes up saying that the system cannot find the file specified (a project dll). It is looking in the right path (..\debug), but there is no dll present.
I started a new Silverlight 4 project, and get the same error.
Sometime's the debugging does work (I am not sure if/what anything changed, but on one occasion I was surprised that my breakpoints worked. After changing one thing the breakpoints stopped working)
-
Grayson Mitchell about 14 yearsyea, I was using chrome (I think it has worked 'occasionally in chrome). Have not had an issue with Firefox before, will test out firefox later and post the results. When I clean the solution, I still get the warnings about the dll's, but the breakpoint do work.
-
RandomEngy almost 14 yearsI'm still getting this problem after a clean, rebuild and running in IE.
-
Wil P almost 12 yearsI had everything setup properly already and was using IE to debug. For whatever reason it had quit working and breakpoints weren't being hit. I cleaned the solution and this did the trick! Thanks
-
Kate about 10 yearsI didn't have to follow exactly this process, but cleaning and rebuilding the solution fixed it (magically).
-
NoWar about 10 yearsI found that someone of our developer unchecked that option so when I have updated to the last code it was unchecked. Thank you, man!
-
maplemale almost 10 yearsTried every solution here. Nothing works. And, I cannot attach to process because there is a bug somewhere in the startup of the SL project which causes it to crash within seconds. ie. no process to attach to.
-
David Airapetyan over 9 yearsSame issue, Silverlight was unchecked. Good solution!
-
user1600801 almost 9 yearsVS2013 Update 4 ~ Sliverlight was unchecked. Thanks.
-
Toby Speight over 4 yearsThis looks more like it should be a comment. To be an answer, it should explain how and why this addresses the symptoms seen.
-
Marnei Santos over 4 yearssorry, my bad. but after spend some hours in the same problem, uncheck this solved for me.
-
Blue over 4 years@TobySpeight This is an answer though. It does not need to explain how and why in order to be an answer: It needs to these in order to be a good answer.
-
robsiemb over 4 years
-
realsonic over 3 yearsThis helped me, thanks. Windows 10, VS 2015, Silverlight 5, IE.