This article highlights a known issue where refreshing an Endpoints Web Service or Endpoints WCF Service Broker service instance can result in a duplicate proxy assembly being loaded into host server memory. This issue may be experienced as a "Object of type '[SomeObject]' cannot be converted to type '[SomeObject]'" error when executing a SmartObject method that uses the refreshed service instance.

Issue:

There is a known issue where refreshing an Endpoints Web Service or Endpoints WCF Service Broker service instance can result in a duplicate proxy assembly being loaded into host server memory.  The result of this is that at runtime SmartObject methods that take serialized complex objects as inputs may not be able to deserialize the objects correctly resulting in a "Object of type '[SomeObject]' cannot be converted to type '[SomeObject]'" error.

 Image

Workaround:

Until this issue is addressed in a future product release, the workaround is to restart the K2 blackpearl service after refreshing Endpoints Web Service or Endpoints WCF Service Broker service instances. This will ensure that only one instance of the proxy assembly exists at a time.