IdentityType is set to SpecificUser but either the UserName or the Password is missing

Topics: Bindings File, Settings Management and SSO, IIS and Web Services
Feb 10, 2015 at 3:49 PM
I'm trying to get BTDF to create an pool and web app on a server deploy.

I've added the following to my btdfproj:

<ItemGroup Condition="'$(Configuration)' == 'Server'">
<IISAppPool Include="BTS.GO.Store6.WebReceive">
  <IdentityType>SpecificUser</IdentityType>
  <UserName>$(AppPoolUserName)</UserName>
  <Password>$(AppPoolPassword)</Password>
</IISAppPool>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' != 'Server'">
<IISAppPool Include="BTS.GO.Store6.WebReceive">
  <DeployAction>None</DeployAction>
  <UndeployAction>None</UndeployAction>
</IISAppPool>
</ItemGroup>

<ItemGroup>
<IISApp Include="BTS.GO.Store6.WebReceive">
  <AppPoolName>BizTalkIsoHost</AppPoolName>
  <PhysicalPath>..\BTS.GO.Store6.WebReceive</PhysicalPath>
  <VirtualPath>/BTS.GO.Store6.WebReceive</VirtualPath>
  <Exclusions>*.csproj;Web.Debug.config;Web.Release.config;WcfServiceDescription.xml;obj;Properties</Exclusions>
</IISApp>
</ItemGroup>

I've made an entry in my SettingsFileGenerator.xml for the test environment's AppPoolUserName and AppPoolPassword values.

I'm running the server deploy using Powershell. After the deployment, when I check the file:
C:\Program Files (x86)\BTS.GO.Store6 for BizTalk\1.0\Deployment\EnvironmentSettings\Exported_TestSettings.xml I see that properties for AppPoolUserName and AppPoolPassword are correctly populated.

However, in the DeployResult.txt I get the following error:

BTS.GO.Store6.WebReceive
                        DeployAction=CreateOrUpdate
                        DotNetFrameworkVersion=v4.0
                        Enable32Bit=False
                        IdentityType=SpecificUser
                        Password=
                        PipelineMode=Integrated
                        UndeployAction=Delete
                        UserName=
        Task Parameter:MSBuildProjectDirectory=C:\Program Files (x86)\BTS.GO.Store6 for BizTalk\1.0\Deployment
        Task Parameter:Mode=Deploy
        C:\Program Files (x86)\BTS.GO.Store6 for BizTalk\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets(1688,5): error : IdentityType is set to SpecificUser but either the UserName or the Password is missing.
Any ideas what I've missed?
Coordinator
Feb 10, 2015 at 4:15 PM
Did you include AppPoolUserName and AppPoolPassword in PropsFromEnvSettings?
Marked as answer by BizTalkers on 2/12/2015 at 10:38 AM
Feb 12, 2015 at 5:38 PM
Right again Tom - thanks very much,

Rob Bowman.