When an error occurs in a WCF service, K2 tries to recall the service which was in error

  • 24 February 2022
  • 0 replies
  • 9 views

Userlevel 5
Badge +20
 

When an error occurs in a WCF service, K2 tries to recall the service which was in error

kbt153607

PRODUCT
K2 blackpearl 4.7
BASED ON
K2 blackpearl 4.7
TAGS
SmartObjects
Security
On-premises
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

If you have a WCF (Windows Communication Foundation) service and the service that is used to make a call fails, K2 attempts to make the call once again. It appears that there is no way for this to be disabled and this ends up impacting the environment as the WCF service instance may not be transaction aware.

Symptoms

The following function is an example of what is added within the WCF application:

         void ExampleExtensionService.ThrowAnErrorOnPurpose()

        {

            myLogger.LogIn();

             throw new NotImplementedException();

        }

 As a result, you get two entries in the log files:

[2] INFO ExampleTest- v2.0.0.86 - >>> ExampleServiceTest.svc.cs:2365 (ThrowAnErrorOnPurpose) > IN
[3] INFO ExampleTest - v2.0.0.86 - >>>ExampleServiceTest..svc.cs:2365 (ThrowAnErrorOnPurpose) > IN

Troubleshooting Steps

 

You may see this issue due to the pass through authentication being enabled. With this, on service calls that fail may be retried here via the service account. 

There are two options:

1. You can enable enforce impersonation upon the WCF Service Instance which can be done from the SmartObject Tester tool (Program Files x86 > K2 Blackpearl > Bin > Smart Object Tester).

2. Alternatively, set the delegation context equal to the client Kerberos which can be found in the HostServer.exe.config file (Program Files x86 > K2 bBackpearl > Host Server > Bin).

Note: Enforce Impersonation normally needs the user’s credentials to be cached and your client Kerberos requires Kerberos to be fully configured.

0 replies

Be the first to reply!

Reply