Also here are the relevant entries from the log file:
2016-05-07 16:29:57.3118 165 INFO Stopping the Windows Service
2016-05-07 16:29:57.3118 165 INFO The Octopus server is shutting down...
2016-05-07 16:29:57.3118 165 INFO Shutting down the embedded web server
2016-05-07 16:29:57.3274 165 INFO listen://[::]:10943/ 165 Listener stopped
2016-05-07 16:29:57.3430 165 INFO The Windows Service has stopped
2016-05-07 16:30:12.5245 7 INFO Browse your Octopus server at: http://localhost:80/
2016-05-07 16:30:12.5881 7 INFO Browse your Octopus server at: https://localhost:443/
2016-05-07 16:30:12.5901 7 INFO The Octopus server is starting: Initializing database and performing migrations...
2016-05-07 16:30:12.8043 7 INFO Beginning database upgrade
2016-05-07 16:30:12.8083 7 INFO Fetching list of already executed scripts.
2016-05-07 16:30:12.8283 7 INFO Executing SQL Server script 'Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs'
2016-05-07 16:30:13.6447 7 ERROR Upgrade failed due to an unexpected exception:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.FixVariableSetChannelScope(String projectId, Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 117
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.LoadAndRepairProjects(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 69
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.ProvideScript(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 29
at DbUp.Engine.LazySqlScript.get_Contents()
at DbUp.Support.SqlServer.SqlScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
at DbUp.Engine.UpgradeEngine.PerformUpgrade()
2016-05-07 16:30:13.6547 7 FATAL Database upgrade failed: Cannot perform runtime binding on a null reference
Database upgrade logs:
Beginning database upgrade
Fetching list of already executed scripts.
Executing SQL Server script 'Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs'
Upgrade failed due to an unexpected exception:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.FixVariableSetChannelScope(String projectId, Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 117
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.LoadAndRepairProjects(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 69
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.ProvideScript(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 29
at DbUp.Engine.LazySqlScript.get_Contents()
at DbUp.Support.SqlServer.SqlScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
at DbUp.Engine.UpgradeEngine.PerformUpgrade()
System.Exception: Database upgrade failed: Cannot perform runtime binding on a null reference
Database upgrade logs:
Beginning database upgrade
Fetching list of already executed scripts.
Executing SQL Server script 'Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs'
Upgrade failed due to an unexpected exception:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.FixVariableSetChannelScope(String projectId, Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 117
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.LoadAndRepairProjects(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 69
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.ProvideScript(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 29
at DbUp.Engine.LazySqlScript.get_Contents()
at DbUp.Support.SqlServer.SqlScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
at DbUp.Engine.UpgradeEngine.PerformUpgrade()
---> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.FixVariableSetChannelScope(String projectId, Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 117
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.LoadAndRepairProjects(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 69
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.ProvideScript(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 29
at DbUp.Engine.LazySqlScript.get_Contents()
at DbUp.Support.SqlServer.SqlScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
at DbUp.Engine.UpgradeEngine.PerformUpgrade()
--- End of inner exception stack trace ---
at Octopus.Core.Initialization.DatabaseUpgrader.Upgrade(IRelationalStore store) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\Initialization\DatabaseUpgrader.cs:line 40
at Octopus.Core.Initialization.StoreInitializer.Initialize() in Y:\work\refs\tags\3.3.11\source\Octopus.Core\Initialization\StoreInitializer.cs:line 22
at Octopus.Server.OctopusServerEngine.Start() in Y:\work\refs\tags\3.3.11\source\Octopus.Server\OctopusServerEngine.cs:line 49
at Octopus.Server.Commands.RunCommand.Start() in Y:\work\refs\tags\3.3.11\source\Octopus.Server\Commands\RunCommand.cs:line 37
at Octopus.Shared.Startup.AbstractCommand.Octopus.Shared.Startup.ICommand.Start(String[] commandLineArguments, ICommandRuntime commandRuntime, OptionSet commonOptions) in Y:\work\refs\tags\3.3.11\source\Octopus.Shared\Startup\AbstractCommand.cs:line 58
at Octopus.Shared.Startup.WindowsServiceHost.<>c__DisplayClass1_0.<Run>b__0() in Y:\work\refs\tags\3.3.11\source\Octopus.Shared\Startup\WindowsServiceHost.cs:line 19
at Octopus.Shared.Startup.WindowsServiceAdapter.RunService() in Y:\work\refs\tags\3.3.11\source\Octopus.Shared\Startup\WindowsServiceAdapter.cs:line 44
2016-05-07 16:30:13.6757 7 FATAL Unhandled AppDomain exception occurred: Database upgrade failed: Cannot perform runtime binding on a null reference
Database upgrade logs:
Beginning database upgrade
Fetching list of already executed scripts.
Executing SQL Server script 'Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs'
Upgrade failed due to an unexpected exception:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.FixVariableSetChannelScope(String projectId, Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 117
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.LoadAndRepairProjects(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 69
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.ProvideScript(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 29
at DbUp.Engine.LazySqlScript.get_Contents()
at DbUp.Support.SqlServer.SqlScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
at DbUp.Engine.UpgradeEngine.PerformUpgrade()
System.Exception: Database upgrade failed: Cannot perform runtime binding on a null reference
Database upgrade logs:
Beginning database upgrade
Fetching list of already executed scripts.
Executing SQL Server script 'Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs'
Upgrade failed due to an unexpected exception:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.FixVariableSetChannelScope(String projectId, Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 117
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.LoadAndRepairProjects(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 69
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.ProvideScript(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 29
at DbUp.Engine.LazySqlScript.get_Contents()
at DbUp.Support.SqlServer.SqlScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
at DbUp.Engine.UpgradeEngine.PerformUpgrade()
---> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.FixVariableSetChannelScope(String projectId, Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 117
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.LoadAndRepairProjects(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 69
at Octopus.Core.UpgradeScripts.Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.ProvideScript(Func`1 commandFactory) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\UpgradeScripts\Script0041FixOrDeleteChannelReferencesForVariablesAndReleaseCreationOptions.cs:line 29
at DbUp.Engine.LazySqlScript.get_Contents()
at DbUp.Support.SqlServer.SqlScriptExecutor.Execute(SqlScript script, IDictionary`2 variables)
at DbUp.Engine.UpgradeEngine.PerformUpgrade()
--- End of inner exception stack trace ---
at Octopus.Core.Initialization.DatabaseUpgrader.Upgrade(IRelationalStore store) in Y:\work\refs\tags\3.3.11\source\Octopus.Core\Initialization\DatabaseUpgrader.cs:line 40
at Octopus.Core.Initialization.StoreInitializer.Initialize() in Y:\work\refs\tags\3.3.11\source\Octopus.Core\Initialization\StoreInitializer.cs:line 22
at Octopus.Server.OctopusServerEngine.Start() in Y:\work\refs\tags\3.3.11\source\Octopus.Server\OctopusServerEngine.cs:line 49
at Octopus.Server.Commands.RunCommand.Start() in Y:\work\refs\tags\3.3.11\source\Octopus.Server\Commands\RunCommand.cs:line 37
at Octopus.Shared.Startup.AbstractCommand.Octopus.Shared.Startup.ICommand.Start(String[] commandLineArguments, ICommandRuntime commandRuntime, OptionSet commonOptions) in Y:\work\refs\tags\3.3.11\source\Octopus.Shared\Startup\AbstractCommand.cs:line 58
at Octopus.Shared.Startup.WindowsServiceHost.<>c__DisplayClass1_0.<Run>b__0() in Y:\work\refs\tags\3.3.11\source\Octopus.Shared\Startup\WindowsServiceHost.cs:line 19
at Octopus.Shared.Startup.WindowsServiceAdapter.RunService() in Y:\work\refs\tags\3.3.11\source\Octopus.Shared\Startup\WindowsServiceAdapter.cs:line 59
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()