Introduction to XAML Browser Applications (XBAP)
page 6 of 8
by Nihar Ranjan Nayak
Feedback
Average Rating: 
Views (Total / Last 10 Days): 46577/ 610

Deploying a XAML Browser Application

When you build a XBAP, the Microsoft build engine (MSBuild) produces the following three files as a minimum:

An executable file. This contains the compiled code and has an .exe extension.

An application manifest. This contains metadata associated with the application and has a .manifest extension.

A deployment manifest. This file contains the information that ClickOnce uses to deploy the application and has an .xbap extension.

          We can publish the XBAPs to a web server like IIS. We do not need to install .NET Framework in the web server. But you do need to register the WPF Multipurpose Internet Mail Extensions (MIME) types and file extensions. These are some MIME types which needs to be registered.

                  

         

 

MIME Type

Extension

application/manifest

.manifest

application/x-ms-xbap

.xbap

application/octet-stream

.deploy

application/x-ms-application

.application

application/vnd.ms-xpsdocument

.xps

application/xaml+xml

.xaml

 

          To prepare your XBAP for deployment, copy the .exe and the associated manifests to your Web server. Create a hyperlink on a Web page to navigate to the deployment manifest. When the user clicks the link and navigates to the .xbap file, ClickOnce automatically handles the mechanics of downloading and launching the application.

Clearing Cached XBAPs

In some situations after rebuilding and launching your XBAP, you may find that a previous version of the XBAP is launched. This may happen, for example, when your XBAP assembly version number is static and you launch the XBAP from the command line. In this case, because the version number between the cached version (the version that was previously launched) and the new version remains the same, the new version of the XBAP is not downloaded; instead, the cached version is loaded.

In these situations, you can remove the cached version by using the Mage command (installed with the Windows SDK) from the command prompt:

Mage.exe -cc

This ensures that the latest version of your XBAP is launched, because a cached version can't be found. If you debug using Visual Studio 2005, by pressing F5, the latest version of your XBAP should be launched.

In general, you should update your assembly version number with each build.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 4 and 8 and type the answer here:

User Comments

Title: Nice Article   
Name: Jagz
Date: 3/18/2010 12:33:47 AM
Comment:
Thanks, its really helpful
Title: Mobile Phone Seeker   
Name: Mobile Phones
Date: 12/29/2009 12:15:31 AM
Comment:
Very nice article and I was searching for such an article.
Please write such articles in future also

Thanks
Mobile Phone Seeker
Title: Nice article   
Name: Neetu
Date: 8/26/2009 3:23:46 AM
Comment:
Good explanation but please specify some more details on applying controls on WPF enabled application(StandAlone)
Title: thanks may fold   
Name: bob
Date: 7/9/2009 7:24:29 PM
Comment:
thanks for this great write up on XBAP, i was in a panic state trying to figure out if i could use XBAP on the WEB and this answered my pressing concerns, now i can sleep!

Thanks Nihar and may great things come your way this year!
Title: Mr   
Name: Nihar
Date: 3/18/2009 2:16:51 AM
Comment:
Hello Ithyan,

XBAp apps run in partial trust mode. So they can't use WCF services in .NET framework 3.0. But framework 3.5 has some improvements over 3.0. So in framework 3.5 we can use WCF in partial trust mode for.

Thanks.
Title: Mr   
Name: Ithyan
Date: 3/18/2009 12:29:22 AM
Comment:
hi,

i hope XBAPs can use WCF.

am completley taken aback on seeing this."XBAPs cannot use WCF."
please check.
Title: Mr.   
Name: Satyadeep Kumar
Date: 3/11/2009 5:37:04 AM
Comment:
Nice, but i'm confused about one line in conclusion: "WPF doesn't require the framework"!!!

Product Spotlight
Product Spotlight 






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2010 ASPAlliance.com  |  Page Processed at 3/20/2010 3:45:24 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search