You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

The ASP.NET IIS Registration action allows the registration or removal of ASP.NET applications within IIS. It can also create ApplicationPools or get the status of the installed ASP.NET.

User Interface

ASP.NET IIS Registration 

Working Folder

The folder from which the AL.EXE command will be run. This allows for easier referencing of source files in the AL command through relative paths. 

ASPNET_REGIIS.EXE Command line options

The parameters to pass to ASPNET_REGIIS.EXE. This can take the following form:

  • [options]

Due to the complexity of this tool and the number of options available we currently allow direct access to the command arguments. These can be found on the MSDN website located here ASPNET_REGIIS.EXE.

Framework version

Use default Framework version (vX.X) / Use vX.X

Allows the selection of the .NET version to use for NGen. The minimum is .NET v2.0.

Use 64-bit tools

This options specifies as whether to force the usage of 64-bit tools on a 64-bit system or not.  As FinalBuilder is currently a 32-bit application it will default to running the 32-bit version on a 64-bit system.  Check this option if you require the 64-bit version to be run.

Action Scripting

Scripting Properties

Script PropertyExample (Javascript)Valid ValuesDefaultPersistedDescription
      


Scripting Events

Script Event

Parameters

Description

BeforeAction

Action : <TAction>

The instance of the current action. Allows access to the action properties and methods.

All properties are set to the values provided by the action editor or their defaults.

SkipAction : Boolean
An out parameter which allows for the action to be skipped during a build. Default is false.

Called before the action is executed. When called all properties on the action have been initialised to those provided in the action editor dialog. Properties which have not been provided are set to their defaults.

Use this event to change anything about the action or perform operations which need to occur before the action is run. Also this event can be used to skip an action entirely. If the action is skipped it will report as such in the log, and no more processing of the action or its scripts will occur.

Run-time errors in this script will stop the action from running and the action will report as failed.

AfterAction

Action : <TAction>

The instance of the current action. Allows access to the action properties and methods.

All properties are set to the values used during the run of the action.

ActionResult : boolean
Indicates if the action succeeded or failed. Allows for the handling or overriding of the actions status during a build.
Continue : boolean

Indicates if the build should continue after this action has completed or not.

Return false to stop the build, return true to ignore the build result and continue the build. Default is unset.

Called after the action has executed. All properties on the action will be the same as when the action was run. Any properties which change during the run will be available at this point (e.g. Exit codes properties).

This event allows for the handling of action error states that where are not directly handled by the action itself. For example if an certain error code is acceptable it can be logged and ignored through this event.

Conversely a certain successful run condition that is not desirable could be reported through this event. To achieve these outcomes set the ActionResult and Continue parameters to values which reflect the true outcome of the actions run.

Run-time errors produced by this script will cause the action to report as failed. Setting of either the ActionResult or Continue parameters will not override this.

OnStatusMessage

Action : <TAction>

The instance of the current action. Allows access to the action properties and methods.

All properties are set to values used during the run of the action.

StatusMessage : TStatusMessage
The status message object contains all information relating to the message being logged (Lines, MessageText, MessageTitle, and Progress).

Called whenever the action generates a log message.

Actions will generate this event when the action has received output from the underlying tool, or when the action itself has something to report. The StatusMessage may contain zero-to-many lines of text and is in the format directly seen in the log.

As formatting depends on the tool being used we advise using the RegExp function to parse the output if required. Also please review the TString object type for more information on how to access the contents of the messages.

Run-time errors produced by this script will cause the action to report as failed.

  • No labels