|
Categories: Deployment
|
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, IIS, Mono, Pre v6.3, v6.3, v6.4 and Later
Revision:
13
Posted:
23/July/2009
Updated:
10/April/2011
Status:
Publish
Types: Article
|
Deploying a Visual WebGui applicationFollow these three simple steps to deploy a Visual WebGui application: - Register the Visual WebGui extension you will be using, as a recognized extension of your IIS. By default this is *.wgx, but it can as well be *.ashx or any other available extension.
* If you would like to use a different extension for Visual WebGui applications, view this article here. In the case you use an ASP.NET extension will not need to to register it as it is already registered. * You can find IIS version specific articles linked in the "Deploy to IIS" section below, explaining how this should be done. * In IIS7, make sure you remember setting the extension so that you clear the "Invoke handler only if request is mapped to". - Visual WebGui has no deployed phisical files specific to Forms, as the applications are contained within a *.dll file.
In IIS v5.1 and v6, there is a setting in the "Extension Mapping" dialog called: "Check that file exists". You need to uncheck this checkbox, otherwise your application will not load in deployment. In IIS7 this setting is unchecked by default. Manually copy the following to your Virtual Directory: * The "bin" directory (without the contained assembly related *.pdb and *.xml files). * The "Web.config" file. This file is not copied by the MS Visual Studio "Publish" action and is absolutely critical for deployment. * The "Resources" directory (if exists).
As an alternative to step 3, you can use the MS Visual Studio 'Publish' tool. Do be aware that this tool will not copy the Web.config file in most cases, so you will need to copy it manually. General concerns when deploying your Visual WebGui application to IIS - On IIS7 64bit with .NET4.0 installed for example you you have four different mappings registered to this extension: .NET2.0 32 bit, .NET2.0 64bit, .NET4.0 32bit and .NET4.0 64bit.
You will need to register the mapping that suits your .NET version used by your Visual WebGui application. You can register more than one handler mapping for the same extension, using different handler mappings, and the one most suitable will be selected upon request. - When assigning your application to an application pool, you must select an application pool that you have set for the correct version of the .NET framework. For Visual WebGui application built in Visual Studio 2005 or Visual Studio 2008, you would set your application to use the v2.0 of the .NET framework, and for application built in Visual Studio 2010, you would set the application pool to use the v4.0 of the .NET framework.
- Currently, Visual WebGui assemblies are compiled for 32bit only, which means that running it on 64bit IIS, you need to set the application pool's properties such that it allows 32bit application.
This setting is within the advanced settings of the application pool, named "Enable 32 bit applications". - You may also have the option of setting your application pool's Managed Pipeline Mode, and the options are either Classic or Integrated. Visual WebGui applications have their web.config by default set for Classic mode, and to use them in Managed Mode (Integrated) you will need to make minor changes to your web.config.
See the forum threads section below for a link to more information. Please also note that in IIS7 and newer, the DefaultAppPool (which users most often choose by default) is in Integrated mode, so to use your Visual WebGui application without changing web.config during deployment, then use the "Classic .NET AppPool", or the equivialent .NET 4.0 one. - If you are using a proxy server / load balancer / firewall, you may want to look at the configuration options listed in this article here.
- If you would like more information on the various Visual WebGui related configuration options in the Web.Config file, please view this article here.
Upgrading a Visual WebGui version for a deployed application: In this situation you need to replace the Visual WebGui assemblies in the bin directory of your Virtual Directory and possibly update your Resources folder. Please follow either the manual or the Publish methods for deployment above, to replace the assemblies and update your Resources folder. It is considered best-practice to increment the value of the PrivateVersion configuration in your application's Web.config file. Deploy to IIS Deploy with different extensionForum threadsOther referencesDeploy to Apache / Mono2 in 1 applicationsCassini Desktop serverSee also Issue TrackerSamples of use
About the author
Related Articles
|
Deployment
|
|
|
DNN architecture provides a way to extend your site via DNN modules.
Tags:
Architects, Developers, IIS, Pre v6.3, v6.3, v6.4 and Later
|
|
|
|