Deploying Silverlight Applications Versus IIS
-
I created a silverlight app (I didn't choose my app to host in another web app).
-
Now I have created a simple welcome home page.
-
I created a virtual directory of my silverlight project in IIS to host applications.
4. When I view MainPage.xaml in loaclhost it doesn't work.
-> I think I ran a .xap file to host my application, but I don't know haw ??? OR Do I need to host the silverlight app from the .aspx page?
a source to share
If you have not already created a web host project along with your Silverlight application, then when you debug your Silverlight application, it creates a file TestPage.html
in the bin \ debug directory under the project directory.
This page hosts the XAP, and this is what the IDE specifies as the page-opened browser instance created when debugging starts.
Hence, to host this on your IIS 5.1 server, you can create a virtual directory pointing to the bin \ debug folder in your project. Going to TestPage.html in this virtual directory (for example http://localhost/myvirtualdir/testpage.html
) will load your application.
a source to share