|
|
|
Hosting the Silverlight Web Site on Windows Vista
Follow these steps to install the files and create a Silverlight web site.
• Create a folder (ex: FileUploadSample) on the host computer and extract the contents of the zip file into it. Folder should contains the .xap, testpage.html (under Bin/Debug/ folder) files. • Open the Internet Information Services Manager (IIS Manager), and in the Connections pane, right-click the Default Web site, select Add Virtual Directory, and create a new virtual directory. In the field for the alias of the directory, enter application name (ex: FileUploadSample as created in VS2008). It is important to name the virtual directory application name, because some paths in the documentation website are coded to that specific path name. In the field for the physical path to use, use the path to the local folder in which you extracted the contents of the .ZIP file. • After the virtual directory has been created, right-click the new virtual directory in the Connections pane, and click Convert to Application. • In IIS Manager, select the node for the new application name virtual directory, and follow these steps: 1. Ensure that you are in Features view in the details pane for the virtual directory. 2. Double-click the Authentication settings icon, ensure that only Anonymous Authentication is enabled, and click the Back button to return to the Features view. Note: You also need to ensure that the account used for anonymous access, or a user group of which this account is a member, is given Read or Read and Execute permissions on the Windows folder that contains the files for this Web site. To confirm this now, open Windows Explorer, browse to the folder, right-click the folder and select Properties, and then click the Security tab. If the account being used for anonymous access does not appear on the folder with the required permissions, add it now. 3. Double-click the Authorization rules settings icon, and ensure there is an entry to allow all local users access to the site (this is enabled by default). Click the Back button to return to the Features view. 4. Double-click the Default document settings icon, and ensure there entries for default documents named Default.aspx, Default.htm, and Default.html. Click the Back button to return to the Features view. 5. Double-click the Mime types settings icon in the details pane, and add entries for each of the Mime types indicated in the following table. You are doing this so that these file types can be downloaded by the Web server to the Silverlight runtime. For each item in the following table, click the Add button to create a new MIME type, enter the extension string in the File name extension text box, enter the MIME Type string in the Mime Type text box, and then click OK.
Extension Mime Type .xap -- application/x-silverlight-app .xaml -- application/xaml+xml
6. When you have finished entering MIME Types, close the IIS Manager. 7. You can launch the Silverlight site, if it is hosted on your development machine, using a local URL such as http://localhost/FileUploadSample
|
No responses found. Be the first to respond and make money from revenue sharing program.
|