Web.WebSite.Exists not giving correct result

Feb 3, 2010 at 8:42 PM
Edited Feb 3, 2010 at 9:06 PM

Hi all,

    I currently have a build definition that has the following in the AfterDropBuild target:

<Web.WebSite.Exists Identifier="id of web site" MachineName="machine1">
      <Output TaskParameter="DoesExist" PropertyName="WebSiteExists"/>
</Web.WebSite.Exists>

<Message Text="Web Site exists: $(WebSiteExists)" />

I've also tried

<Web.WebSite.Exists Description="web site name" MachineName="machine1">
      <Output TaskParameter="DoesExist" PropertyName="WebSiteExists"/>
</Web.WebSite.Exists>

<Message Text="Web Site exists: $(WebSiteExists)" />

 

My build agent is a Win2K3 box (IIS is not installed).  The target machine, where IIS7 lives, is a Win 2k8 machine.  IIS6 Management Compatibility is installed and shows up under Role Services on the Win 2k8 box.  The Win 2k3 box is in the same domain as the Win 2k8 box.  The Win 2k3 box can ping the Win 2k8 box.

The account, under which the team build service is running (on the build agent), is temporarily an administrator on the win 2k8 box -- I wanted to make sure it wasn't a permissions thing.

The build script completes successfully, however, the value of WebSiteExists is always incorrect.  It keeps saying the web site doesn't exist when it clearly does.

What do I need to do to get the Web.WebSite.Exists task to return the correct result?  Do I need to configure something or set something up before this will work?

 

Any help is appreciated.

Cliff