Deploying a Silverlight application
-
I'm building a proof of concept using VS 2008 and the very latest Silverlight 2. What do I need to do to deploy to a commercial host? DiscountASP.net in this case. Is it simply a case of copying the contents of \release onto the server? Where is the FAQ on this topic - seems to be AWOL Any help appreciated. Thx++
-
I'm building a proof of concept using VS 2008 and the very latest Silverlight 2. What do I need to do to deploy to a commercial host? DiscountASP.net in this case. Is it simply a case of copying the contents of \release onto the server? Where is the FAQ on this topic - seems to be AWOL Any help appreciated. Thx++
-
Hello David Thanks - the addition of a 'publish' option in VS 2008 would have been a really good idea I think! I hope I've persuaded the DiscountASP.Net people to write up a KB article about it.
-
Hello David Thanks - the addition of a 'publish' option in VS 2008 would have been a really good idea I think! I hope I've persuaded the DiscountASP.Net people to write up a KB article about it.
-
Hello David Thanks - the addition of a 'publish' option in VS 2008 would have been a really good idea I think! I hope I've persuaded the DiscountASP.Net people to write up a KB article about it.
Jerry Evans wrote:
I hope I've persuaded the DiscountASP.Net people to write up a KB article about it.
You could always write one, based on your experience with Silverlight and commercial hosting, and post it here on CP.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
-
I'm building a proof of concept using VS 2008 and the very latest Silverlight 2. What do I need to do to deploy to a commercial host? DiscountASP.net in this case. Is it simply a case of copying the contents of \release onto the server? Where is the FAQ on this topic - seems to be AWOL Any help appreciated. Thx++
I managed to get a test Silverlight 2.0 Application working on my local copy of IIS 6.0/WinXP Pro...some things to know: - It seems to work best if debugging is turned off in Web.Config, to change it, from VS2008 menus, go Website-->ASP.Net Configuration...that brings up an add-on for managing the security settings etc for your project. - Mime-types: I found references for 2 mime types that need to be added in your IIS Control Panel: - .xaml = application/xaml+xml - .xap = application/x-silverlight ...see here[^] for the .XAML and here[^] for the .XAP This[^] is another reference to the mime type issue. If you add these yourself, make sure not to forget the period in front of the extension, or it doesn't work eg: '.xap' not 'xap' - .Net 3.0 and 3.5 in Silverlight 2.0 still use the ASP.Net 2.0 stuff in IIS, make sure that your virtual directory under IIS is set to use ASP.Net 2.0 ...or your hosting provider has it set. - When I created my Silverlight Project, I included an 'ASP.Net Website' for testing...I copy the entire contents from that to my IIS virtual folder...if I make changes and rebuild, I recopy the whole thing. The other project which is the actual Silverlight project gets compiled into a *.XAP file which is copied to the 'ClientBin' folder of the 'ASP.Net Website' project, so you don't need any files from the actual Silverlight project for deployment. So, if my project was called 'SilverlightApplication', you would wind up with a 'SilverlightApplication.Web' folder...copy the entire contents of that to your IIS folder...the files and folders were:
App_Data (folder)
Bin (folder)
ClientBin (folder with .XAP file)
Default.aspx
Default.aspx.cs
Silverlight.js
SilverlightApplicationTestPage.aspx
SilverlightApplicationTestPage.html
web.configTo load the site from a web browser, I