Select to view content in your preferred language

How to publish my SL website?

2435
4
09-08-2010 01:08 PM
BinBin
by
Emerging Contributor
Problem solved, thank you very much.
0 Kudos
4 Replies
AliMirzabeigi
Emerging Contributor
Have you added required MIME types in your IIS Server? Here you can find some information about deploying Silverlight applications:
http://msdn.microsoft.com/en-us/library/ff921170(PandP.20).aspx

And the following URL shows you how to configure your IIS 7 web server to host a Silverlight application:
http://technet.microsoft.com/en-us/library/cc725608(WS.10).aspx
0 Kudos
dotMorten_esri
Esri Notable Contributor
Basically all a silverlight app requires is:
1) A html page that contains and loads the Silverlight Plugin.
2) A .xap file which is the Silverlight app (this is usual the output in the ClientBin folder of your website when you build it).
3) Optionally (but highly recommended!) the silverlight.js file which helps users install the plugin if they don't already have it.

Also as Ali mentions, the mimetype for the .xap file is important. As long as this is set, you can host your app on any webserver that can simply host html, javascript and .xap files (meaning there's no requirement on using IIS, ASP.NET, .NET etc). Of course if your website contains ASP.NET pages and/or services that the silverlight app communicates with, it will require an ASP.NET webserver like IIS.
0 Kudos
BenjaminClift
Emerging Contributor
Basically all a silverlight app requires is:
1) A html page that contains and loads the Silverlight Plugin.
2) A .xap file which is the Silverlight app (this is usual the output in the ClientBin folder of your website when you build it).
3) Optionally (but highly recommended!) the silverlight.js file which helps users install the plugin if they don't already have it.

Also as Ali mentions, the mimetype for the .xap file is important. As long as this is set, you can host your app on any webserver that can simply host html, javascript and .xap files (meaning there's no requirement on using IIS, ASP.NET, .NET etc). Of course if your website contains ASP.NET pages and/or services that the silverlight app communicates with, it will require an ASP.NET webserver like IIS.


Does the .xap file need to be in the same folder as the html page or can
<param name="source" value="  location of .xap file  "/>

the html page has the location of the .xap file


I am trying to do this to deploy the application but develop further.  After rebuilding I just copy over the application files and the .xap file in a single directory without needing to access wwwroot directory.  The html page would point to the .xap file in the other directory.

Thanks in advance.
0 Kudos
dotMorten_esri
Esri Notable Contributor
Yes that should be fine. In fact the default template that Visual Studio creates, it puts the .xap file in a ClientBin folder below the html page.
0 Kudos