Windows Server 2003 and IIS6 support

I saw another thread about iis 6. I’m getting errors when trying to deploy to a tentacle that is running windows server 2003 with IIS 6 on it. Here is the error message:

2011-08-29 19:49:45 ERROR  Error while executing job: Could not load file or assembly 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at Octopus.Tentacle.Integration.Iis.InternetInformationServer.OverwriteHomeDirectory(String iisWebSiteName, String path)
at Octopus.Tentacle.Conventions.IisWebSite.AfterDeployment(ConventionContext context) in c:\TeamCity\buildAgent\work\93ea602cb1d1c3f2\source\Octopus.Tentacle\Conventions\IisWebSite.cs:line 41
at Octopus.Tentacle.Jobs.DeployPackageJobExecutor.Execute(DeployPackageJob job) in c:\TeamCity\buildAgent\work\93ea602cb1d1c3f2\source\Octopus.Tentacle\Jobs\DeployPackageJobExecutor.cs:line 53
at Octopus.Tentacle.Jobs.DeployPackageJobExecutor.Execute(Job job) in c:\TeamCity\buildAgent\work\93ea602cb1d1c3f2\source\Octopus.Tentacle\Jobs\DeployPackageJobExecutor.cs:line 25
at Octopus.Tentacle.Jobs.JobQueue.RunDeploymentsOnBackgroundThread(Object state) in c:\TeamCity\buildAgent\work\93ea602cb1d1c3f2\source\Octopus.Tentacle\Jobs\JobQueue.cs:line 72

Hi Sean,

Thanks for reporting the issue. I just published a new build that contains a fix for this.

There are two ways to update IIS - using LDAP, or using the IIS 7 API’s. The LDAP approach only works when IIS 6 Management Compat tools are installed under IIS 7, which a few people forgot to do. So I switched to using the API, but that of course broke IIS 6.

I now use both - I try to use the IIS 7 API, but if that isn’t available, I’ll fall back to LDAP, so it should work for IIS 7 and IIS 6.

Paul

Hmm. I updated to the latest tentacle package and the main octopus server. Heres the versions I installed and I still seeing the same error:

Octopus server : 0.8.371.1976
Tentacle : 0.8.370.1975

Error:

2011-08-29 23:18:19 ERROR  Error while executing job: Could not load file or assembly 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at Octopus.Tentacle.Integration.Iis.InternetInformationServer.OverwriteHomeDirectory(String iisWebSiteName, String path)
at Octopus.Tentacle.Conventions.IisWebSite.AfterDeployment(ConventionContext context) in c:\TeamCity\buildAgent\work\93ea602cb1d1c3f2\source\Octopus.Tentacle\Conventions\IisWebSite.cs:line 25
at Octopus.Tentacle.Jobs.DeployPackageJobExecutor.Execute(DeployPackageJob job) in c:\TeamCity\buildAgent\work\93ea602cb1d1c3f2\source\Octopus.Tentacle\Packages\UploadedPackageInstaller.cs:line 86
at Octopus.Tentacle.Jobs.DeployPackageJobExecutor.Execute(Job job) in c:\TeamCity\buildAgent\work\93ea602cb1d1c3f2\source\Octopus.Tentacle\Packages\UploadedPackageInstaller.cs:line 56
at Octopus.Tentacle.Jobs.JobQueue.RunDeploymentsOnBackgroundThread(Object state)

Any ideas? I restarted the main octopus server after installing and restarted the tentacle service on the tentacle. Any ideas?

Sean

Hi Sean,

The latest Tentacle is version .1976, not .1975 as you have below. It’s
possible my CI server didn’t upload the Tentacle at the same time as
the Octopus so you accidentally got the old version. Upgrading should
fix it.

Paul From: Sean Chambers
Sent: Tuesday, 30 August 2011 12:25 AM
To: paul@octopusdeploy.com
Subject: Re: windows Server 2003 and IIS6 support [Problems]

Perfect! That fixed the issue and my web project successfully deployed to windows server 2003 iis6.

Thanks Paul!