How To Change An Application Pool for An Application In (IIS 7)

If a particular configuration setting is used by every one of the application, then you will be able to assign to that particular application pool, other different applications. An example is when settings of processes for worker recycling or the version of ASP.NET used by a set of applications are the same. They can equally run in a related application pool. Nevertheless, you have to create a different application pool if there is a need for a certain application to function with special settings.

You should also note that this article applies only to the Windows 7 platform, the 2008 Windows Server, the 2008 R2 Windows Server and finally the Windows Vista platform.

A: Changing an Application Pool for An Application Through the IIS Manager

This particular procedure can be performed by either making use of the User Interface popularly known in the IT World as UI, by directly editing the files for configuration, by the writing of scripts for WMI or by the running of commands of the Appcmd.exe in a window for the command line.

In order to alter the Application Pool, the following steps are required. You will be able to get it done seamlessly if you follow them correctly.

Step 1: Open IIS Manager

The opening of the IIS Manager is the very first thing to do when you want to use the UI. When you open it go to advanced setting.

How To Change An Application Pool for An Application In (IIS 7)

Step 2: Choose Application Pool

To do this, navigate into the panel for “Connections” and then access the server node, where you would see a list of options and you select the “Application Pools” option.

How To Change An Application Pool for An Application In (IIS 7)

Step 3: Choose Application Pool Type

When you have accessed the page for the “Applications Pools”, then select the type of application pool which holds that application you wish to make a change to. And click browse.

How To Change An Application Pool for An Application In (IIS 7)

Step 4: View Applications

Navigate to the panel tagged “Action” and tap on the “View Applications” option you see there.

Step 5: Change Application Pool

Once the applications are visible, search for the exact one you wish to make a change to and click on the “Change Application Pool” visible in the panel tagged “Actions” in order to change it.

How To Change An Application Pool for An Application In (IIS 7)

Step 6: Select Application Pool

In the dialog box for the “Select Application Pool”, choose from the list of the “Application Pool”, an application pool and then click on the OK” button visible on the screen. And that brings you to the end of the steps for changing the application pool.

B: Changing An Application Pool For An Application Through Command Line

Make use of the syntax below if you wish to make a change to the application pool where an application functions. The syntax is thus:

**appcmd set app /app.name:**string **/applicationPool:**string

What the application you wish to change is called is "app.namestring” which is a variable. And the application pool where you wish to include the application to is called “applicationPoolstring” which is also a variable.

An example is when you wish to add a certain application called “sales” to an application pool we tag “Finance” and a site which we call “cancarda.da”, then this is the format you should use in typing out the prompt of the command after which you then tap on the “Enter button”.

The variable app.namestring is the name of the application that you want to change, and the variable applicationPoolstringis the name of the application pool to which you want to add the application. For example, in a site named contoso, to add an application named deals to an application pool named Marketing, type the following at the command prompt, and then press ENTER:

appcmd setapp /app.name:contoso/deals /applicationPool:Marketing
 
appcmd setapp /app.name:cancarda.da/sales /applicationPool:Finance

Windows Management Instrumentation (WMI) in IIS 7

In order to design scripts for the administration of the web, the IIS 7 makes use of the Windows Management Instrumentation (WMI). Hence, it is contained in this provider namespace and the administration of the web of the IIS 7 WMI, sets of methods and classes which allow you to either script websites administration, or web applications’ administration or the admin of any properties or objects which are associated to them.

You can make use of the scripts of the WMI in IIS7 for reading, accessing and modifying major files for configurations like the "Web.confg”and the "ApplicationHost.config” with the use of proper settings for delegation. By making use of the provider for IIS 7 WMI, you could also make additions or subtractions of modules in sectional level or global level, and as well make configurations of commonplace characteristics like the errors of the custom HTTP, the Mime Maps, bindings for SSL, and the settings for ASP.

The importance of WMI scripting in the IIS 7 remains for frequent automation of tasks which have been repeated like the Websites creating, but at the same time, it can use to its advantage, the newly arrived features that the Control API (RSCA) and Runtime Status exposed to diagnose and monitor sites.

For instance, you can monitor HTTP requests, worker processes, application pools, and application sites through the use of WMI scripting. You can as well access the fresh diagnostics and troubleshooting features in IIS 7, like failed request tracing, through scripting the IIS 7 WMI source.

Conclusion

There you have it, all the information and steps to follow to change an application pool in IIS 7. You should also note that this applies only to the Windows 7 platform, the 2008 Windows Server, the 2008 R2 Windows Server and finally the Windows Vista platform.

Check out these top 3 Joomla hosting services:

Was this article helpful?