Symptoms
When attempting to run the K2 App Registration Wizard, the following error occurs:
The remote server returned an error: (404) Not Found.
SourceCode.SmartObjects.Services.SharePoint.Integration.Execution.Execute.GetSPSiteRealm(String siteURL)
SourceCode.SmartObjects.Services.SharePoint.Integration.Execution.Execute.ManageSPS2SResource(ServiceInstance Service)
Diagnoses
Attempting to re-run the appdeployment.exe resulted in the following error:
1:5: K2Application.LogErrors: 21:37:58:>> Logged Error: The following errors occured while running the powershell script:
Exception Info: PSArgumentException, A valid object could not be read from the provided pipebind parameter.. Invocation Info: The error was generated by the following Powershell command: Remove-SPTrustedRootAuthority. Stack trace: at Remove-CurrentSecurityTokenIssuer, D:ContentSharePoint4. K2 for SharePoint 4.6.10 (4.13350.1720.2)InstallationSetupS2S-portal.denallix.com-443.ps1: line 47
at <ScriptBlock>, D:ContentSharePoint4. K2 for SharePoint 4.6.10 (4.13350.1720.2)InstallationSetupS2S-portal.denallix.com-443.ps1: line 60.
Resolution
Manually removing the K2 trust entries from oCentral Administration > Security > Manage trust] and re-running the appdeployment.exe resolved the 404 issue when running the Registration Wizard.