I have the following configuration for the website:
- Two web interfaces (e.g. machine names: WFE1 and WFE2) 1 SQ
- One SQL Server database cluster (for example, machine name: DBCluster)
All machines are in the same domain (for example, MyDomain) running Windows 2008 R2 Enterprise and SQL Server 2008 R2.
I am deploying a web application using an application pool identifier. I named the pool MyWebApp, which translates to the name, [IIS APPPOOL \ MyWebApp]. When I try to add this user to SQL Server, I get the error message:
Windows NT user or group "IIS APPPOOL \ MyWebApp" not found. Check the name again.
script I used to create an account in SQL Server:
CREATE LOGIN [IIS APPPOOL \ MyWebApp] FROM WINDOWS WITH DEFAULT_DATABASE = [MyDatabase], DEFAULT_LANGUAGE = [us_english] GO
I assume the problem occurs because the IIS account is a local account that does not appear in the SQL Server field.
Can someone shed light on how this problem can be solved? Is using a domain account my only option or can I get application pool accounts?
source share