Symptoms
When we open a smartform , we get this error: SigningCredentials was not initialized
This is the details of the error:
SigningCredentials was not initialized
•Type: System.InvalidOperationException
•: OAuthException
•: OAuth
•: OAuth
•Source: SourceCode.Security.OAuth.Extensions.SharePointS2S
•Stack Trace:
at SourceCode.Security.OAuth.Extensions.SharePointS2S.IssueToken(Guid primaryCredentialID, OAuthResource oAuthResource, Boolean appOnly, OAuthToken primaryOAuthToken)
at SourceCode.Security.OAuth.Service.OAuthService.IssueOAuthTokenFromExtension(Guid primaryCredentialID, OAuthResource oAuthResource, Boolean appOnly, OAuthToken primaryOAuthToken)
at SourceCode.Security.OAuth.Service.OAuthService.IssueOAuthHighTrustToken(Guid primaryCredentialID, OAuthResource oAuthResource, Boolean forceTokenRefresh, Boolean appOnly)
This form was operating yesterday.
Diagnoses
This is usually caused by the "Refresh Trusted Security Token Services Metadata feed" Timer Job (schedule daily) not running or attempts to run but failed.
https://help.k2.com/onlinehelp/K2ForSharePoint/ICG/4.6.11/default.htm_Install_Topics/Maintenance/Troubleshooting.htm?Highlight="Refresh Trusted Security Token Services Metadata"
Resolution
Running the "Refresh Trusted Security Token Services Metadata feed" job manually resolved the issue.