Deployment on IIS After creating the SilverLightDemo app, we can now deploy the same on IIS very easily. First create a base folder for deploying your application, say C:\SilverLightApp. Copy the TestPage.html from your SilverLightDemo project directory and paste it onto this base folder and rename it to Default.html. We also need to copy the Silverlight.js and Page.xaml files to the base folder. As the TestPage.html is used to refer to TestPage.html.js file, we will copy it also onto the base folder. The Page.xaml file shows that the Silverlight application is expecting compiled assembly to be found in ClientBin folder. So we will paste the SilverLightDemo.dll, the compiled assembly for the project SilverLightDemo, from the project directory to the ClientBin folder under base directory. Now we can use this base folder to act as virtual directory in IIS. Start IIS and under Web Sites option, right click on Default Web Site and then select New > Virtual Directory. Set the alias for the virtual directory as Silverlight and browse to the base folder location and then click Finish. Now with the URL http://localhost/Silverlight/Default.html we can load the page containing the Silverlight application.
With this we have successfully created a Silverlight application using VS 2008 and designed its interface using Expression Blend 2.
Get most out of your technology infrastructure investments with Dell
About CIOL | Media Kit | Site Map | Contact Us | Help | Write to us | Jobs@CyberMedia | Privacy Policy
Copyright © CyberMedia India Online Ltd. All rights reserved. Usage of content from web site is subject to Terms and Conditions.