Symptoms
Error during "K2 for SharePoint - App Deployment" when we "Specify a K2 URL":
Error: Endpoint cannot be reached:
http://{ServerName}/autodiscover/api/metadatadocument/test
Ensure that the port is opened and you can browse to the endpoint from this location
Diagnoses
When we try to access to the url:
http://{ServerName}/autodiscover/api/metadatadocument/test
We are not able to download the file. If it's work, we should able to download a json file.
In event viewer, after put in place the Audit Failure (https://technet.microsoft.com/en-us/library/cc787567(v=ws.10).aspx) on directory C:ProgramDataMicrosoftCryptoRSAMachineKeys, we saw the following message:
2025 Error Marshalling
SourceCode.Security.UserCertificateManagementServer.GetK2SigningCertificate, Access Denied
....
Cryptographic Operation:
Operation: Open Key.
Returned Code: 0x80090016
This type of message should appears if K2 SmartForms has not been installed with the K2 Service account. In the case of the customer, it was a specific account for K2 Installation.
Resolution
The re-installation of the K2 SmartForms using the K2 Service account fix the issue.