18 apr 2011

Silverlight: the breakpoint will not currently be hit

A quick tip for those scratching their heads with this error when debugging Silverlight in Internet Explorer (and possibly other browsers):

The breakpoint will not currently be hit. 
No symbols have been loaded for this document.

When this happens, it means that the browser is not loading the correct binary. It could mean several things.

  1. The browser is using a cached and outdated version of your binary files. You just need to clear the browser's cache! Hint: Click on the Wheel icon in IE - Developer tools. In my experience, this is the most common situation.
  2. You have multiple silverlight components on one page, or you are using multiple browser pages. This is more complicated. If you can, you should alway use one single window when debugging, so you may want to load your popups in the main window temporarily, to allow debugging.

blog comments powered by Disqus
©2010 Netpalantir . credits