CreateVirtualDirectory AppCreate is not creating an app name in IIS

Jun 12, 2009 at 3:22 PM

I have the following code in my TFS (2008) build script:

<PropertyGroup>
    <ServerName>AUSTX01PROD</ServerName>
    <WebSiteName>MediApps</WebSiteName>
    <VirtualDirName>MATX</VirtualDirName>
    <VirtualDirPath>D:\MediApps\MATX</VirtualDirPath>
    <AppPoolName>MediApplications</AppPoolName>
    <CreateAppInIIS>True</CreateAppInIIS>
</PropertyGroup>

<Target Name="CreateVirtualDirInIIS">
    <Web.WebSite.CreateVirtualDirectory
                    VirtualDirectoryName="$(VirtualDirName)"
                    Path="$(VirtualDirPath)"
                    MachineName="$(ServerName)"
                    AppPoolID="$(AppPoolName)"
                    AppCreate="$(CreateAppInIIS)"
                    WebSiteName="$(WebSiteName)" />
</Target>

I get no errors or warnings and the virtual directory is created.  However, the Application Name is blank in the Virtual Directory Properties | Virtual Directory tab | Application Name.

Does anyone know why this is?

Thanks.

 

KJ

Jun 12, 2009 at 4:53 PM

I figured this out.

The Application Name actually had a period in it.  As soon as I removed the period, the problem went away.