Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | Videos | Photos | Blogs | Beginners | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Team Foundation Server Hosting
Search :       Advanced Search »
Home » WPF » "Avalon" Application Types

"Avalon" Application Types

In Vista world, application type selection is based of security requirement and deployment method but not on user interface requirements. This article describes variouos application types supported by Avalon sub-system of Vista operating system.

Page Views : 6548
Downloads : 0
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
Nevron Gauge for SharePoint
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

In Vista world, application type selection is based of security requirement and deployment method but not on user interface requirements. By security and deployment point of view, there are two types of application in Avalon:

  1. Express Application: This application is deployed from a web server and can be executed only from a web-browser with limited security rights. This application is similar to typical web application but can have rich user interface by utilizing Avalon elements.
  2. Installed Application: This application can be deployed from web server using ClickOnce technology or installed using Windows Installer. Like a typical desktop application, they are hosted in their own window and can't be executed in web-browser.

Express or "Web" Application

In pre-vista world, before starting application development, typically application designer has to decide on type of application depending upon user interface and deployment model. If application required complex UI, designer usually goes for Windows Application and if ease of deployment is required, Web Application is normally preferred.

With introduction of Vista, that decision will be hardly required as Vista supports express application type which supports complex user interface but yet supports ease of deployment.

User Interface

In terms of user interface and user experience, Express applications start from where typical Web application ends. These applications can use all "safe" Windows User Interface controls such as TabControl, menus, toolbars and can use advanced windows technique such as 3D graphics, animations, and transformations.

How to create...

To create express application, select "Express Application" project type in Visual Studio.NET 2005. On building this project, complier creates three files. The name depends on the project, but they have the following extensions:

  1. xapp. The deployment manifest. This is used by ClickOnce to deploy the application.
  2. exe.manifest. The application manifest. This contains the standard application metadata that is created for any managed application.
  3. exe. The application's executable code.

User can deploy express application by navigating to XAPP file upon which ClickOnce will download and deploy application binaries on user's machine. When user navigates to XAPP file next time, ClickOne validates for any application update and if not available, runs already downloaded version.

Restrictions

It has very fewer access rights than a typical desktop application but permission level can be elevated by user's permission. Needless to say that Express application can not use unmanaged code or perform "unsafe" operations like accessing registry. Even some part of WinFX API is inaccessible in these applications and will throw security exception on use.

Summary

This hosting model may be considered if:

  1. Application does not need to be used offline.
  2. Avoid dialog box requesting permission for the deployment to proceed.
  3. Providing users to have a seamless Web-like experience, including the ability to navigate from the application to a web page and back.
  4. Application can run with Internet Security Zone permissions, which provide only limited access to system resources such as the file system.
  5. Application does not require any "Avalon" elements that are not allowed in the Internet zone.

Installed Application

This application is similar to typical desktop applications which can have complex and rich User interface and can be installed on user's machine using ClickOnce or MSI installer.

User Interface

Installed applications can use all features of "Avalon" sub-system.

How to create...

To create express application, select "Avalon Application" project type in Visual Studio.NET 2005. On building this project, complier creates three files. The name depends on the project, but they have the following extensions:

  1. application. The deployment manifest. This is used by ClickOnce to deploy the application.
  2. exe.manifest. The application manifest. This contains the standard application metadata that is created for any managed application.
  3. .exe. The application's executable code.

User can deploy application by navigating to APPLICATION file upon which ClickOnce will prompt user to download and deploy application binaries on user's machine. Other way is to create MSI installer to install application, create shortcuts and list application in Add/Remove program files.

Restrictions

This application can perform operations and access resources which are permitted for the current user using the application.

Summary

This hosting model may be considered if:

  1. Application requires full access to system resources such as the file system or registry.
  2. It is acceptable to have dialog box request permission from the user before the application can be deployed.
  3. Application need to use "Avalon" elements that are not allowed for express applications.
  4. Application to needs to run in a standalone window.
  5. Ability to use the application offline.

Switching between Express and Installed Application

Installed and Express applications are created in almost similar way and they differ mostly by project type's compiler settings. If application only contains code which can be executed in Internet security zone, application can be converted any time from express to installed (or vice versa) just by changing compiler settings and recompiling the project.

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Piyush Gupta
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
 Comments
Team Foundation Server Hosting
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.