问题
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.
回答1:
Host Silverlight in IIS:
Add application to: (Or make sure IIS_IUSRS has permission)
C:\inetpub\wwwroot\[Application]
- Add Website and point to Silverlight directory
- Add it as an application
- Make SURE you set the application pool to something that is capably of .Net 4
- Go to Application Pools on the Connection Pane
- Right click on the Application Pool you are using for the application
- Go to Basic Settings
- Set the Default Document to your Silverlight page
- Start the Web Site
来源:https://stackoverflow.com/questions/9190927/hosting-silverlight-5-in-iis-5-1