Class Not Registered BeforePostDeploy

I am trying to test the new 3.1 version of Octopus Deploy and I am getting an error I can’t figure out. (Octopus 3.1.0-beta0001) Most of the website deployment runs find until it gets to the Octopus.Features.IISWebSite_BeforePostDeploy script. I have looked at the line, but it appears to be running some dynamic code there so I can’t tell what the actual class is not registered.

11:39:48 Info | Assigning bindings to website…
11:39:48 Info | Binding: http :80:
11:39:48 Info | Anonymous authentication enabled: False
11:39:53 Info | Applied configuration changes to section “system.webServer/security/authentication/anonymousAuthentication” for “MACHINE/WEBROOT/APPHOST/Default Site” at configuration commit path "MACHINE/WEBROOT/APPHOST"
11:39:53 Info | Basic authentication enabled: False
11:39:53 Info | Applied configuration changes to section “system.webServer/security/authentication/basicAuthentication” for “MACHINE/WEBROOT/APPHOST/Default Site” at configuration commit path "MACHINE/WEBROOT/APPHOST"
11:39:53 Info | Windows authentication enabled: True
11:39:53 Info | Applied configuration changes to section “system.webServer/security/authentication/windowsAuthentication” for “MACHINE/WEBROOT/APPHOST/Default Site” at configuration commit path "MACHINE/WEBROOT/APPHOST"
11:39:53 Info | Attempt 1 of 5 failed: Class not registered (Exception from HRESULT: 0x80040154
11:39:53 Info | (REGDB_E_CLASSNOTREG))
11:39:53 Info | Waiting for 1 seconds before retrying…
11:39:53 Info | Retrying…
11:39:53 Info | Attempt 2 of 5 failed: Class not registered (Exception from HRESULT: 0x80040154
11:39:53 Info | (REGDB_E_CLASSNOTREG))
11:39:53 Info | Waiting for 1 seconds before retrying…
11:39:53 Info | Retrying…
11:39:53 Info | Attempt 3 of 5 failed: Class not registered (Exception from HRESULT: 0x80040154
11:39:53 Info | (REGDB_E_CLASSNOTREG))
11:39:53 Info | Waiting for 1 seconds before retrying…
11:39:53 Info | Retrying…
11:39:53 Info | Attempt 4 of 5 failed: Class not registered (Exception from HRESULT: 0x80040154
11:39:53 Info | (REGDB_E_CLASSNOTREG))
11:39:53 Info | Waiting for 1 seconds before retrying…
11:39:58 Info | Retrying…
11:39:58 Error | Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
11:39:58 Error | At C:\d_drive\Octopus.Features.IISWebSite_BeforePostDe
11:39:58 Error | ploy.ps1:68 char:10
11:39:58 Error | + throw <<<<
11:39:58 Error | + CategoryInfo : OperationStopped: (:slight_smile: [], COMException
11:39:58 Error | + FullyQualifiedErrorId : Class not registered (Exception from HRESULT: 0x
11:39:58 Error | 80040154 (REGDB_E_CLASSNOTREG))
11:39:58 Verbose | Deleting 'c:\d_drive\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’
11:39:58 Error | Script ‘c:\d_drive\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ returned non-zero exit code: 1
11:39:58 Error | Running rollback conventions…

Resolved - I have no idea how, but two services that IIS depends on were uninstalled since yesterday. IIS - World Wide Web Services and Windows Process Activation Service needed to be reinstalled then everything started working again.