Debugging Silverlight when hosted in a web project?

This is probably the main question.

I have two projects:

  • A web application project with a web page hosting the Silverlight application as well as a web service
  • Silverlight application project hosted in the above web application

If I am debugging a Silverlight application, he wants to launch it using the generated web page, which, of course, will not start my web application, and the calls to web services will fail due to some security model at different sites. Therefore, even if I have a web application running, the Silverlight application will not use it.

If I am debugging a web application (that is, installing it as a launch project and uninstalling Debug), then the Silverlight application seems to be placed correctly, but I cannot debug it. Any breakpoints in it are displayed as these hollow circles.

So what am I doing wrong? How do I set up my projects so that I can launch a web application, launch a Silverlight application and debug it?

I bet this is one of those “test” moments when someone tells me, but I can't figure it out.

These are Visual Studio 2008, .NET 3.5, and Silverlight 3.

+3
source share
1 answer

- silverlight.

, Silverlight ( , )

http://msdn.microsoft.com/en-us/library/aa983445.aspx

a > > > Sivlerlight

+8

Source: https://habr.com/ru/post/1753663/


All Articles