Wednesday, July 30, 2014

Create an Application Pool (IIS 7)

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista
Application pools isolate sites and applications to address reliability, availability, and security issues. You should consider creating applications pools for any one of the following reasons:
  • To group sites and applications that run with the same configuration settings.
  • To isolate sites and applications that run with unique configuration settings.
  • To increase security by using a custom identity to run an application.
  • To prevent resources in one application from accessing resources in another application. For example, ISPs might create individual application pools for each customer's sites and applications. Separating customer content in this manner can prevent one customer's resources from accessing resources on another customer's site, even though both customers' sites are on the same Web server.
  • To improve performance by separating unstable applications from well-behaved applications.To create an application pool on a Web server

    You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.

    User Interface

    To use the UI

    1. Open IIS Manager. For information about opening IIS Manager, see Open IIS Manager (IIS 7).
    2. In the Connections pane, expand the server node and click Application Pools.
    3. On the Application Pools page, in the Actions pane, click Add Application Pool.
    4. On the Add Application Pool dialog box, type a friendly name for the application pool in the Namebox.
    5. From the .NET Framework version list, select the version of the .NET Framework required by your managed applications, modules, and handlers. Or select No Managed Code if the applications that you run in this application pool do not require the .NET Framework.
    6. From the Managed pipeline mode list, select one of the following options:
      • Integrated, if you want to use the integrated IIS and ASP.NET request- processing pipeline.
      • Classic, if you want to use IIS and ASP.NET request-processing modes separately. In classic mode, managed code is processed by using Aspnet_isapi.dll instead of the IIS 7 integrated pipeline.
    7. Select Start application pool immediately to start the application pool whenever the WWW service is started. By default, this is selected.
    8. Click OK.

    Command Line

    To add an application pool to a Web server by using default settings, use the following syntax:
    appcmd add apppool /name: string
    The variable string is the name that you want for the application pool. For example, to add an application pool named Marketing, type the following at the command prompt, and then press ENTER:
    appcmd add apppool /name: Marketing
    By default, IIS adds an application pool that runs in integrated mode and uses .NET Framework version 2.0. If you want to add an application pool that runs a different version of the .NET Framework or that uses classic mode, you can specify the .NET Framework version with the /managedRuntimeVersion attribute and the managed request-processing mode with the /managedPipelineMode attribute.
    To add an application pool to a Web server by using settings different from the default settings, use the following syntax:
    appcmd add apppool /name: string /managedRuntimeVersion: .string /managedPipelineMode: Integrated |Classic
    The variable namestring is the name that you want for the application pool. The variablemanagedRuntimeVersionstring is the version of the .NET Framework that you want the application pool to run. When you want to run a specific version of the .NET Framework, specify the value formanagedRuntimeVersionstring as v1.0v1.1, or v2.0, or leave the value blank if you do not want to run managed code in the application pool. For example, to add an application pool that does not run managed code and that uses classic mode, type the following at the command prompt, and then press ENTER:
    appcmd add apppool /name:Marketing /managedRuntimeVersion: /managedPipelineMode:Classic

No comments:

Post a Comment