Setting up a Tentacle results in "System.MissingMethodException" on one server

I have been able to successfully install Octopus.Tentacle.2.3.6.1385-x64.msi on a few new VMs, but one particular VM results in errors when going through the setup stage.


A fatal exception occurred
System.MissingMethodException: Method not found: ‘Void Autofac.ContainerBuilder.Update(Autofac.IContainer, Autofac.Builder.ContainerBuildOptions)’.
at Octopus.Shared.Startup.OctopusProgram.RegisterAdditionalModules()
at Octopus.Shared.Startup.OctopusProgram.Start(ICommandRuntime commandRuntime) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Startup\OctopusProgram.cs:line 141
at Octopus.Shared.Startup.ConsoleHost.Run(Action`1 start, Action shutdown) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Startup\ConsoleHost.cs:line 36

Error: The previous command returned a non-zero exit code of: 100
Error: The command that failed was: “C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe” create-instance --instance=“Tentacle” --config=“C:\Octopus\Tentacle\Tentacle.config”

A fatal exception occurred
System.MissingMethodException: Method not found: ‘Void Autofac.ContainerBuilder.Update(Autofac.IContainer, Autofac.Builder.ContainerBuildOptions)’.
at Octopus.Shared.Startup.OctopusProgram.RegisterAdditionalModules()
at Octopus.Shared.Startup.OctopusProgram.Start(ICommandRuntime commandRuntime) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Startup\OctopusProgram.cs:line 141
at Octopus.Shared.Startup.ConsoleHost.Run(Action`1 start, Action shutdown) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Startup\ConsoleHost.cs:line 36

Error: The previous command returned a non-zero exit code of: 100
Error: The command that failed was: “C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe” delete-instance --instance=“Tentacle”

Found out what the issue was - Autofac had been GACed sometime in the past by mistake. Once I removed Autofac from the GAC_MSIL the setup worked fine.