Search code examples
silverlightiis-5

Hosting Silverlight 5 in IIS 5.1


I wanted to know if a Silverlight application can be hosted on IIS 5.1, because when I create a virtual directory and publish the Silverlight project and try browsing it, I get this following error:

The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.


Solution

  • Host Silverlight in IIS:

    1. Add application to: (Or make sure IIS_IUSRS has permission)

      C:\inetpub\wwwroot\[Application]
      
    2. Add Website and point to Silverlight directory
    3. Add it as an application
    4. Make SURE you set the application pool to something that is capably of .Net 4
      1. Go to Application Pools on the Connection Pane
      2. Right click on the Application Pool you are using for the application
      3. Go to Basic Settings
      4. Make it .Net 4 and Integrated
    5. Set the Default Document to your Silverlight page
    6. Start the Web Site