Saturday, 17 April 2010

How do I register ASP.NET with my IIS 6.0 Web Server?

To register ASP.NET on your IIS 6.0 web server, complete the following:
1. Open Command Prompt and change directory as follows:

For 32-bit machines change to:

For 64-bit machines change to:

2. Run the command ‘aspnet_regiis.exe -i’ and press enter.

Additional information can be found here:;en-us;306005;en-us;325093

Thursday, 15 April 2010

The identity of the Application Pool is invalid

You're getting an invalid application pool identity error, but you are 100% certain you have entered the username and password correctly. And, of course, in some cases, you made a typo and gone back to correct it, but in those very few instances the following error is found in the eventlog:

“The identity of application pool ‘DefaultAppPool’ is invalid, so the World Wide Web Publishing Service can not create a worker process to serve the application pool. Therefore, the application pool has been disabled.”

In this case the application pool identity is in fact correct, but the user ID in the app pool is not part of the IIS_WPG on the web server. Only users in this group may start worker processes.  Add the user and recycle the application pool. Voila!

Thursday, 8 April 2010

Howto: Copy IIS 6 metabases to multiple servers

There will come a time when you need to either move your IIS 6 website to a new server or scale out by adding more servers. In either situation the following command line procedure will greatly reduce the time required to do so.

The following example copies the IIS configuration of the local computer to the Svr01 server. The command uses the /ts parameter to identify the target server, and the /tu and /tp parameters to provide the user's administrator account and password on the Svr01 server.

iiscnfg /copy /ts SVR01 /tu SVR01\Admin06 /tp [email protected]