2

We are creating windows user, application pool using this user and website using the application pool in IIS 7, but if we delete these after creation and recreate them again the application pool start fails with the following error:

The Windows Process Activation Service failed to create a worker process for the application pool 'TestUserPool'. The data field contains the error number.

The Event ID is 5022 and the error number 80070005 which means ERROR_ACCESS_DENIED as we found here

The strange thing is that changing the pool name, changing the application pool user or restarting the IIS fixes the problem. We had this issues when doing all this programmatically, but the same thing cannot be reproduced manually. The problem is that we need to add this functionality to an installer, but if you uninstall the site and then reinstall you will receive "Service Unavailable" until you restart your IIS server.

Thanks in advance!

Vasil Trifonov
  • 1,857
  • 16
  • 21

0 Answers0