I have a WiX package that has one component creating an IIS 7 application pool which has the ApplicationPoolIdentity identity (IIS AppPool\AppPoolName). I then have another component to add permissions in a SQL Server database for this identity (I am using the SqlString extension).
When the SQL runs to add permissions I get the following error:
Windows NT user or group 'IIS AppPool\AppPoolName' not found.
I'm assuming this is happening because the IIS stuff is happening in a transaction and the application pool has not actually been committed quite yet.
Does anyone have a better approach to this problem?
Thanks!