Using Silverlight 2 on a production Web Server
I recently ran into an issue with using Silverlight 2 on a production web server. Basically the Silverlight 2 application worked great on my dev machine, but when hit from the production web server I found the page has the Silverlight control, but just a white canvas, nothing else.
The problem was that the web server was not set up to handle the .xap file extension that Silverlight 2 uses to encapsulate the code for the application.
A few options for fixing this issue:
1. For IIS6, simply add the .XAP filetype.
2. For II7, this should just work as IIS7 enables them all by default.
3. Other web services such as Apache, lighttpd, etc. Just make sure the server is configured to allow access to .xaml, .wmv and .xap files and you should be all set
4. Sometimes you can't easily go in and change the setting on the server. So the solution I actually used was none of these. I just renamed the .XAP file to .ZIP, changed the reference in my applications .Xaml file and it ran fine!
Hope that helps!
Comments
Anonymous
March 14, 2008
PingBack from http://msdnrss.thecoderblogs.com/2008/03/14/using-silverlight-2-on-a-production-web-server/Anonymous
March 14, 2008
PingBack from http://blogs.msdn.com/brada/archive/2008/03/14/using-silverlight-2-on-a-production-web-server.aspxAnonymous
March 14, 2008
Using Silverlight 2, which is in BETA, on a production web server especially for use by users outside of my company would not be possible. Beta software is not allowed on production servers and especially ones visible to outside users.Anonymous
March 14, 2008
>>Sometimes you can't easily go in and change the setting on the server. So the solution I actually used was none of these. I just renamed the .XAP file to .ZIP<< Brad, so why didn't MSFT just use .ZIP to begin with so we wouldn't have to change it back to Zip? Can you suggest to make the extension to Zip rather than XAP? Thanks! ..BenAnonymous
March 14, 2008
Silverlight 2 now packs all the files needed to run the application in a XAP file (which is essentiallyAnonymous
March 15, 2008
@Rob: well, when putting Silverlight 2 beta on production web server means that you simple only put a FILE on the web server, nothing different than a TXT file. Silverlight applications will only be executed on the client side, so it is no problem to put any beta Silverlight app on production servers. MichaelAnonymous
March 16, 2008
I recently ran into an issue with using SilverlAnonymous
March 17, 2008
ASP.NET, Web Evítate problemas: pon SIEMPRE un nombre de aplicación en Web.config . Una recomendaciónAnonymous
March 26, 2008
ASP.NET, Web Evítate problemas: pon SIEMPRE un nombre de aplicación en Web.config . Una recomendaciónAnonymous
April 01, 2008
I'll be using this page to link to Silverlight 2 articles and posts (both ones I write as well ones byAnonymous
April 08, 2008
Recently, I upgraded my personal blog that contains a little Silverlight animation form Silverlight Alpha...Anonymous
April 08, 2008
Silverlight技巧,诀窍,教程和链接 【原文地址】SilverlightTips,Tricks,TutorialsandLinksPage 我将使用本页链接到有关Silve...Anonymous
May 29, 2008
How can apache differ from IISAnonymous
July 10, 2008
This is something really easy to do, but can be confusing. Keep in mind SL will be run at the clientAnonymous
July 21, 2008
(以下内容全部整理自博客堂Scottgu博客中文版)Silverlight技巧,诀窍,教程和链接 【原文地址】SilverlightTips,Tricks,...Anonymous
October 14, 2008
Godaddy and Running SilverlightAnonymous
January 05, 2009
Silverlight技巧,诀窍,教程和链接 【原文地址】SilverlightTips,Tricks,TutorialsandLinksPage 我将使用本页链接到有关Silve...