When I run an XBAP application, I get Application Deployment Error. What do I do to overcome this error ?

XBAP applications are cached when you run for the first time. In order to give maximum performance, subsequent requests run the application from the cache until the version number of the application is changed. Therefore, if you make any changes to the code, re-compile and then run it and you don’t see any changes to the result or if you get the application deployment error, run the ‘mage-cc’ command from the Visual Studio Command Prompt and try running the application again.

Are XAML Browser Applications OS independent ?

No. An XAML Browser application works only on Windows and requires .NET Framework 3.0 or a later version to be installed. It can be hosted in Internet Explorer or in any other browser that hosts the Microsoft WebBrowser ActiveX control.

How does Rendering work in Frame control ?

WPF changes the way it renders the frame control based on the content it contains. It renders using the WPF rendering pipeline when the content is an XAML or loose XAML file whereas it uses Internet Explorer’s GDI based rendering when the content is HTML. Therefore, you will encounter issues when applying transforms to a Frame with HTML content. Issues also occur when ‘ApplyTransparency’ is enabled.

How do I enable automatic updates for my application using ClickOnce deployment ?

ClickOnce allows the vendors to provide regular updates for the applications. To enable automatic updates, select ‘publish’ tab in Project Properties window and click on the ‘updates’ button. In the Application Updates window, select the mode of application updates like ’after application starts’ and ’before application starts’. The former mode is used when there is a need to provide regular updates of the application after a period of time and in the later mode, the application checks for the updates only once, that is when the application runs for the first time. Click OK to close the Application Updates window and publish the application.