The Breakpoint will not currently be hit: No symbols have been loaded for this document

24,101

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. enter image description here

Solution 3

For Silverlight applications enabling hit of breakpoint:

  1. In the Solution explorer right click on the Web Side of the project and select properties.
  2. Navigate to Web Tab, in the property window that opened.
  3. 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.

Share:
24,101

Related videos on Youtube

Grayson Mitchell
Author by

Grayson Mitchell

Born in Wellington, New Zealand.

Updated on July 09, 2022

Comments

  • Grayson Mitchell
    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
    Grayson Mitchell about 14 years
    yea, 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
    RandomEngy almost 14 years
    I'm still getting this problem after a clean, rebuild and running in IE.
  • Wil P
    Wil P almost 12 years
    I 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
    Kate about 10 years
    I didn't have to follow exactly this process, but cleaning and rebuilding the solution fixed it (magically).
  • NoWar
    NoWar about 10 years
    I 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
    maplemale almost 10 years
    Tried 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
    David Airapetyan over 9 years
    Same issue, Silverlight was unchecked. Good solution!
  • user1600801
    user1600801 almost 9 years
    VS2013 Update 4 ~ Sliverlight was unchecked. Thanks.
  • Toby Speight
    Toby Speight over 4 years
    This 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
    Marnei Santos over 4 years
    sorry, my bad. but after spend some hours in the same problem, uncheck this solved for me.
  • Blue
    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
    robsiemb over 4 years
  • realsonic
    realsonic over 3 years
    This helped me, thanks. Windows 10, VS 2015, Silverlight 5, IE.