Par Thierry Thoua,
jeudi, septembre 27 2007.
Lien permanent
Silverlight
Mais oui... Tout est dans le titre ;-). Silverlight étant une application s'exécutant sur le poste client, il est tout a fait possible de déployer le tout sur un serveur FreeBSD + Apache. Mais comment faire fonctionner le tout ? Simple ... Il suffit de configurer un minimum Apache.
- Configuration d'Apache
1) Ajouter de nouveaux mime-type dans Apache
[apache]
AddType application/xaml+xml .xaml
AddType application/x-ms-application .application
AddType application/x-ms-xbap .xbap
AddType application/manifest .manifest
AddType application/octet-stream .deploy
AddType application/vnd.ms-xpsdocument .xps
2) Relancer Apache
Déploiement d'une application Silverlight 1.0
Exemple de déploiement d'une application 1.0. Il suffit en effet de copier les fichiers.
-rw-r--r-- 1 titi titi 651 2007-09-27 18:16 Default.html
-rw-r--r-- 1 titi titi 581 2007-09-27 18:16 Default_html.js
-rw-r--r-- 1 titi titi 976 2007-09-27 18:17 Page.xaml
-rw-r--r-- 1 titi titi 582 2007-09-27 18:16 Page.xaml.js
-rw-r--r-- 1 titi titi 7556 2007-09-27 18:16 Silverlight.js
Déploiement d'une application Siliverlight 1.1
Exemple de déploiement d'une application 1.1. Pour cela, il faut effectuer la même chose que pour la 1.0 à savoir copier les fichiers xaml, js mais également les dll.
-rw-r--r-- 1 titi titi 782 2007-09-27 18:23 Default.html
-rw-r--r-- 1 titi titi 290 2007-09-27 18:23 Default_html.js
-rw-r--r-- 1 titi titi 478 2007-09-27 18:25 Page.xaml
-rw-r--r-- 1 titi titi 7809 2007-09-27 18:23 Silverlight.js
ClientBin:
total 4
-rw-r--r-- 1 titi titi 3584 2007-09-27 18:28 Test2.dll