Developing Your First Silverlight Application Using Visual Studio 2008 - Adding a Silverlight Project to Visual Studio 2008 solution: hosting in IIS
(Page 4 of 5 )
Once the Silverlight Project is created, it needs to be hosted on the same web server as the web service (previously created). To turn the Silverlight project folder into a virtual directory, go through the following steps:
Using Windows Explorer, find the “SilverlightTest” folder of our Visual Studio 2008 project, right click on it and select “Properties” (Fig 09).
Go to the “Security” tab and add “ASP.NET Machine Account” user and “Network Service” user (along with full privileges) as shown below (Fig 10).
Go to the “Web Sharing” tab, select “Share this folder” and make sure that the options are selected as shown below (Fig 11). Click on OK twice to apply the folder settings.
Open the IIS snap-in, open the “SilverlightTest” web site, right click on the same and select “Properties” (Fig 12).
Within the web site properties, select the “ASP.NET” tab and change the ASP.NET version to “2.0.50727”
Within the same properties window, select “Directory Security” and click on “Edit.”
Make sure that “Enable anonymous access” is checked (Fig 13).