Skip to main content

Microsoft Silverlight

[RTW] SL application in ZIP file and Application.HostRSS Feed

(0)

Patrick8639
Patrick8639

Member

Member

575 points

148 Posts

[RTW] SL application in ZIP file and Application.Host

Hello,

When a web server is not configured to process an XAP file, the common solution is to rename the XAP with a ZIP extension so the server will send it.

Unfortunately this makes a problem when we need to use Application.Current.Host:

  • When the Silverlight application is in a XAP file, we have the full URI of the application.
  • When the Silverlight application is in a ZIP, we have only the file name. In this case, it is not possible to have the server name.
Patrick

preishuber
preishuber

Contributor

Contributor

3570 points

655 Posts

Re: [RTW] SL application in ZIP file and Application.Host

the "common" way is to register mimetype for XAP!

-Hannes

http://www.preishuber.net http://weblogs.asp.net/hpreishuber

Patrick8639
Patrick8639

Member

Member

575 points

148 Posts

Re: [RTW] SL application in ZIP file and Application.Host

Hannes,

When it is not your web server and they don't want to register the XAP MIME type, we cannot use the "common way".

Patrick

Patrick8639
Patrick8639

Member

Member

575 points

148 Posts

Re: [RTW] SL application in ZIP file and Application.Host

Patrick8639:

  • When the Silverlight application is in a ZIP, we have only the file name. In this case, it is not possible to have the server name.

 

Nobody from Microsoft's Silverlight team has a comment about this?

Patrick

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities