Symptoms
Getting the following error when executing WCF SmartObject method:
“SourceCode.SmartObject.Client.SmartObjectException”
Diagnoses
When invoking the same WCF endpoint service from WCFTestClient, the same error was thrown. “Exception of type
‘SourceCode.SmartObject.Client.SmartObjectException’ was thrown.”
During debugging session, we were able to identify that account running the app pool was not set to use the correct account based on the following error in K2 HostServer log:
“10702 An error occurred in the WorkflowService Service Instance. 2803 K2:sDimain]2Machine Name]$ does not have permissions to view the process.”
Resolution
Updating Identity for the App Pool running the WCF application in IIS Manager from ApplicationPoolIdentity to Administrator account and recycling the App Pool, resolved the issue.