in

Dé specialist in .NET trainingen en consultancy

Erik van Appeldoorn

januari 2010 - Posts

  • Hosting website for Silverlight Application.

    When you create a new Silverlight Application in Visual Studio a dialog box comes up with an option to host the application in an ASP.NET Web Application. When you check this option a ASP.NET Web Application project will be added next to the Silverlight application in your VS solution and the .xap output of the SL is copied automatically for you in the /ClientBin folder of the ASP.NET web application when you build the complete solution. Cool, flex, everything fine.

    DemoSilverlight1

    But…What if you decided to deselect this option and you regret this later on..

    No problem, it’s always possible to add a hosting ASP.NET Web application later on:

    1. Just add a ASP.NET Web Application project to your Solution
    2. Go to the property pages of this application (Right click on project in Solution Explorer | Properties)
    3. Select the Silverlight Applications tab
    4. Off you go.

    DemoSilverlight2