Website deployment error

Hello, I have a test environment setup and my website is deployed correctly to two out of three servers. I have ensured the site name is the same, that the tentacle is successfully getting the code, that the app pools have the same framework version, and that all app pools are running in integrated mode, but it still fails. I checked the tentacle event log for additional information, but it only has the error message listed below. Do you have any debugging suggestions?

Here is the pertinent section of the deployment log:

2011-07-07 18:38:04 DEBUG Uploading package WebApplication1 1.2.3 to tentacle http://xxx:10933
2011-07-07 18:38:04 DEBUG Package WebApplication1 1.2.3 has already been uploaded to tentacle ‘http://xxx:10933’, no need to upload it
2011-07-07 18:38:04 DEBUG Deploying package WebApplication1 1.2.3 to tentacle http://xxx:10933
2011-07-07 18:38:05 ERROR Deployment on the tentacle failed: System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000)
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_IsContainer()
at System.DirectoryServices.DirectoryEntries.ChildEnumerator…ctor(DirectoryEntry container)
at Octopus.Tentacle.Integration.Iis.InternetInformationServer.OverwriteHomeDirectory(String iisWebSiteName, String path) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Integration\Iis\InternetInformationServer.cs:line 20
at Octopus.Tentacle.Conventions.IisWebSite.AfterDeployment(ConventionContext context) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Conventions\IisWebSite.cs:line 42
at Octopus.Tentacle.Jobs.DeployPackageJobExecutor.Execute(DeployPackageJob job) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Jobs\DeployPackageJobExecutor.cs:line 39
at Octopus.Tentacle.Jobs.JobQueue.RunDeploymentsOnBackgroundThread(Object state) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Jobs\JobQueue.cs:line 73
2011-07-07 18:38:05 INFO Tentacle output follows:
2011-07-07 18:38:02 DEBUG Tasks will be run in the following order:

  • PowerShellPreDeployScript
  • XmlConfigTransforms
  • XmlConfigVariables
  • PowerShellDeployScript
  • Installers
  • IisWebSite
  • PowerShellPostDeployScript
    2011-07-07 18:38:02 DEBUG Start: Executing RemoveAttributes (transform line 16, 18)
    2011-07-07 18:38:02 DEBUG on /configuration/system.web/compilation
    2011-07-07 18:38:02 DEBUG Applying to ‘compilation’ element (source line 21, 6)
    2011-07-07 18:38:02 WARN Argument ‘debug’ did not match any attributes
    2011-07-07 18:38:02 WARN No attributes found to remove
    2011-07-07 18:38:02 DEBUG End: Done executing RemoveAttributes
    2011-07-07 18:38:02 INFO Updating any .config files
    2011-07-07 18:38:02 DEBUG Scanning configuration file: C:\Program Files (x86)\Octopus\Tentacle\Applications\WebApplication1.1.2.3\content\Web.config
    2011-07-07 18:38:02 DEBUG Setting //appSettings/add[@key=‘currentenvironment’] to 'Development’
    2011-07-07 18:38:02 DEBUG Scanning configuration file: C:\Program Files (x86)\Octopus\Tentacle\Applications\WebApplication1.1.2.3\content\Web.Debug.config
    2011-07-07 18:38:03 DEBUG Scanning configuration file: C:\Program Files (x86)\Octopus\Tentacle\Applications\WebApplication1.1.2.3\content\Web.Release.config
    2011-07-07 18:38:03 INFO Installing any Installers
    2011-07-07 18:38:03 DEBUG Scanning assembly: C:\Program Files (x86)\Octopus\Tentacle\Applications\WebApplication1.1.2.3\content\bin\WebApplication1.dll
    2011-07-07 18:38:03 INFO Updating IIS website named 'WebApplication1’
    2011-07-07 18:38:03 ERROR Error while executing job: Unknown error (0x80005000)
    System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000)
    at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
    at System.DirectoryServices.DirectoryEntry.Bind()
    at System.DirectoryServices.DirectoryEntry.get_IsContainer()
    at System.DirectoryServices.DirectoryEntries.ChildEnumerator…ctor(DirectoryEntry container)
    at Octopus.Tentacle.Integration.Iis.InternetInformationServer.OverwriteHomeDirectory(String iisWebSiteName, String path) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Integration\Iis\InternetInformationServer.cs:line 20
    at Octopus.Tentacle.Conventions.IisWebSite.AfterDeployment(ConventionContext context) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Conventions\IisWebSite.cs:line 42
    at Octopus.Tentacle.Jobs.DeployPackageJobExecutor.Execute(DeployPackageJob job) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Jobs\DeployPackageJobExecutor.cs:line 39
    at Octopus.Tentacle.Jobs.JobQueue.RunDeploymentsOnBackgroundThread(Object state) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Jobs\JobQueue.cs:line 73

2011-07-07 18:38:05 ERROR System.Exception: Deployment on the tentacle failed: System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000)
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_IsContainer()
at System.DirectoryServices.DirectoryEntries.ChildEnumerator…ctor(DirectoryEntry container)
at Octopus.Tentacle.Integration.Iis.InternetInformationServer.OverwriteHomeDirectory(String iisWebSiteName, String path) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Integration\Iis\InternetInformationServer.cs:line 20
at Octopus.Tentacle.Conventions.IisWebSite.AfterDeployment(ConventionContext context) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Conventions\IisWebSite.cs:line 42
at Octopus.Tentacle.Jobs.DeployPackageJobExecutor.Execute(DeployPackageJob job) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Jobs\DeployPackageJobExecutor.cs:line 39
at Octopus.Tentacle.Jobs.JobQueue.RunDeploymentsOnBackgroundThread(Object state) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus.Tentacle\Jobs\JobQueue.cs:line 73
at Octopus.Deployment.PackageDeployer.PollUntilFinished(IJobService service, JobTicket ticket) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus\Deployment\PackageDeployer.cs:line 50
at Octopus.Deployment.DeployTaskExecutor.DeployPackagesToEnvironment(Deployment deployment, Project project, Dictionary`2 packageCache) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus\Deployment\DeployTaskExecutor.cs:line 87
at Octopus.Tasks.TaskQueue.<>c__DisplayClass3.b__0(Object ) in c:\TeamCity\buildAgent\work\76e51ce48adaaaf0\source\Octopus\Tasks\TaskQueue.cs:line 89

Hi Chris,

Can you tell me:

  • Which version of Windows are you using?
  • 64 or 32 bit
  • Is the machine joined to a domain?

Paul

Windows Version:
2 x Windows Server 2008 R2 (one success, one failure)
1 x Windows 7 (success)

Bits:
WinSrv08R2 - both 64 bit
Win7 - 32 bit

Domain:
All three are in the same domain.

-----Original Message-----
From: Paul Stovell [mailto:tender2+d61e404473e5551ff86c3c1aa71fe7834eb9de2a9@tenderapp.com]
Sent: Thursday, July 07, 2011 6:06 PM
To: Christopher McBride
Subject: Re: website deployment error [Problems]

Wow, strange. I’ll try to put a new build out shortly that includes a different approach to handling the IIS registration (using the IIS API’s rather than DirectoryServices directly). Maybe that will have better luck.

Hi,

I have something similar on deployment to a new IIS site with nothing in the folder, please see attached log.

My server is Win2008R2 x64 and not on a domain. Additionally my site folder is not under c:\inetpub\wwwroot - just wondering if there’s a permission issue?

Thanks,
John

deploy_error.txt (7 KB)

John, I think I had the same problem (empty deployment directory) when I failed to follow the proper nuget packing convention; that is, my website wasn’t in a folder named “content”.

Thanks for the suggestion, however I’ve now packaged my site up that way and tried again with the same result.

John

Hi John,

Sorry for the delay. Has IIS 6 Management Compatibility been enabled on the IIS install?

Example

Paul

Hi Paul,

No it hasn’t, I take it I should try with it on?

Thanks,
John

Hi John,

Yes please. Failing that I’ll give you a build that takes a different approach to the one I currently use.

Paul

That worked a treat, thanks Paul!

Great! I’ll update the documentation, and build in some checks for this in future.