set app pool identityType before setting creds