Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF callback interface passing to another WCF service method on different machine
    primarykey
    data
    text
    <p>I received callback interface from machine A and stored it on machine B. </p> <p>I'd like to pass this callback interface (that is a proxy on machine B) to machine C.</p> <p>Machines A, B and C uses WCF so proper interfaces are available.</p> <p>The issue is when I run PassCallbackToDedicatedMachine(someCallback) method I receive exception like below:</p> <p>Unable to cast object of type 'System.Object' to type 'HCP.Common.IClientApplicationCallback'.</p> <p>When I run method on a callback proxy on Machine B everything is ok.</p> <p>The problem is when I try to pass this callback (assigned to some WCF interface of course) to another machine.</p> <p>Maybe there is some method to obtain client endpoint address from proxy, pass this address as string and manually instantiate it on different machine (that knows this interface also).</p> <p>How to do it?</p> <p>Thanks,</p> <p>The callstack is below (maybe it will be helpful):</p> <p>at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)</p> <p>at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc&amp; rpc)</p> <p>at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)</p> <p>at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)</p> <p>at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)</p> <p>at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload