Page view counter
[RTW] SL application in ZIP file and Application.Host Subscribe to this thread
Last post 11-06-2008 12:22 AM by Patrick8639. 3 replies.
Sort Posts:
10-24-2008 11:15 AM
[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
Patrick8639

Loading...
Joined on 11-23-2007
Switzerland
Posts 111
10-24-2008 12:24 PM
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

preishuber

Loading...
Joined on 09-20-2002
Austria/Germany
Posts 434
10-24-2008 1:03 PM
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

Loading...
Joined on 11-23-2007
Switzerland
Posts 111
11-06-2008 12:22 AM
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

Patrick8639

Loading...
Joined on 11-23-2007
Switzerland
Posts 111
Microsoft Communities