Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't attach to Silverlight application with VS2010

Few days ago all was ok: when I started my web-site with Silverlight 4.0 application with F5 in Visual Studio debugger was connecting to Silverlight automatically, but now it doesn't.

I've tried to attach manually from "Debug"->"Attach to process" with "Attach to" option set into "Silverlight code" value. But my breakpoints are still "disabled"...

Why? How can I resolve that?

Thanks.

P.S. I've created new Silverlight project recently - and is been able to attach to silverlight without any problems...

like image 210
Budda Avatar asked May 28 '10 23:05

Budda


2 Answers

check the debugger settings in the ASP project that is hosting your silverlight application, make sure silverlight is checked. Go to Properties->Web tab->Debuggers, check Silverlight

Debuggers Selection

like image 109
luke Avatar answered Nov 01 '22 21:11

luke


My xap-file of the Silverlight app is not being updated after compilation: I've added another control - it didn't appear in my app...

The reason: Silverlight app contained wrong "Startup Object". After fix - problem was resolved.

P.S. Sorry for stupid question.

like image 1
Budda Avatar answered Nov 01 '22 20:11

Budda