Symptoms
We are getting the following error on the K2 for SharePoint Registration Wizard during the "Configuring K2 Server Settings" screen:
K2 Application Configure Server
Method not found: 'Boolean SourceCode.Security.OAuth.OAuthManagement.AddOAuthResource(SourceCode.Security.OAuth.OAuthResource)'.
Note: please see the attached files for better capture for the error message since the text formatting get a bit messed up in this textbox.
===============================
Type:
SourceCode.SmartObjects.Client.SmartObjectException
Source:
SourceCode.SmartObjects.Client
Method Base
Member Type:
Method
Name:
ExecuteScalar
Module
Scope Name:
SourceCode.SmartObjects.Client.dll
Declaring Type
Full Name:
SourceCode.SmartObjects.Client.SmartObjectClientServer
Stack Trace:
at SourceCode.SmartObjects.Client.SmartObjectClientServer.ExecuteScalar(SmartObject smartObject, DataTable inputTable)
at SourceCode.Forms.AppFramework.FormRuntime.SmartObjectExecution(XPathNavigator nav, Boolean outputDependencies, SmartObjectClientServer svr)
at SourceCode.Forms.AppFramework.FormRuntime.WorkXmlToApi(String xml)
at SourceCode.Forms.Runtime.AJAXCall.ProcessRequest(HttpContext context)
Diagnoses
The error was caused by incorrect version of K2 for SharePoint component installed on the K2 server. The K2 blackpearl version was 4.6.9, but K2 for Server for SharePoint 2013 was higher version.
Resolution
Uninstall and reinstall the correct version of K2 for SharePoint resolved the issue.