Search code examples
visual-studiosilverlightdebuggingprocesssilverlight-4.0

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...


Solution

  • 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.