Unable to connect to Silverlight application with VS2010

A few days ago, everything was fine: when I started my website using a Silverlight 4.0 application with F5 in the Visual Studio debugger, it automatically connected to Silverlight, but now it doesn’t.

I tried to connect manually from "Debug" → "Attach to process" with the option "Attach to" set to "Silverlight Code". But my breakpoints are still "disabled" ...

Why? How can I resolve this?

Thank.

PS I recently created a new Silverlight project and was able to connect to Silverlight without any problems ...

+5
source share
4 answers

My Silverlight application xap file is not updated after compilation: I added another control - it did not appear in my application ...

Reason: The Silverlight application contains the wrong launch object. After fixing the problem, the problem was resolved.

PS Sorry for the stupid question.

+1
source

check the debugger settings in the ASP project that hosts your silverlight application, make sure the silverlight checkbox is selected. Go to Properties-> Internet tab-> Debuggers, check Silverlight

Debuggers selection

+4
source

*.xap . , .

0

One of the problems that I often see is that the browser caches XAP, so the changes are not visible. Removing XAP does not always fix this, a simple solution is to add a unique number to the xap link in the HTML / ASPX file and just increase it when you want to force a reboot (for example, here I am user ver param)

0
source

All Articles