views:

180

answers:

4

Hi I have a silverlight application pointing to Silverlight 3. I use VS 2010 Ultimate. When i run it in debug mode or attach to process, break points will be highlighted with yellow exclamations saying symbols are not loaded. I tried the solution given here: http://tiny.cc/li8av

It points to a pdb file on Framework's temp folder and says Symbols loaded. I tried to load the symbols manually by going to Symbol Settings. Even that did not help. Any idea how to fix?

A: 

Another step to take when Silverlight debugging doesn't work is to clear the cache of the browser.

Also make sure the properties in the web project hosting silverlight has silverlight debugger enabled. Web -> Debuggers -> Silverlight checked.

Einarsson
That did not help.. :( All the break points are flagged with exclamation.. so there is no way hitting it without loading the symbols i believe..
Amit
A: 

Mostly it happens due to mismatched version of Silverlight and SDK. Uninstall both, and install it. I hope that helps.

Rahul Soni
That might be a possible reason. I have SDK 3 and i could not find a browser addin for version 3 on microsoft site. at office cn't download from other sites. I observed that if there is a runtime error on the code, it breaks and after that we can debug properly... its a temporary solution..!
Amit
I tried installing/reinstalling everything including Visual Studio from scratch and nothing helped...!
Amit
A: 

I don't know why this works but this is how i got it working.

I went to Tools> options> debugging

unchecked "Require source files to exactly match the original version"

Amit
A: 

You can try starting a new instance.

Right click to Web Project, select Debug, Start a new Instance.

kerem
Not working....
Amit
Hi Amit, can you try the following...Save your solution, from property pages of the Web project, remove silverlight application. Change Target framework to version 3.5. Save. Change framework to version 4.0, add silverlight application from project property pages. Rebuild.
kerem