Hi all,
I have a question regarding EnterpriseServices: I have a serviced
component (see below) that returns an IEnumerator. This Enumerator
should be returned by reference, of course. Howeverm when I try ti run
the code below, I get the exception:
System.Runtime.Remoting.RemotingException : This remoting proxy has no
channel sink which means either the server has no registered server
channels that are listening, or this application has no suitable client
channel to talk to the server.
Stack Trace:
at System.Runtime.Remoting.Proxies.RemotingProxy.InternalInvoke(
IMethodCallMessage reqMcmMsg,
Boolean useDispatchMessage, Int32 callType)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(
IMessage reqMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(
MessageData& msgData, Int32 type)
at System.Collections.IEnumerator.MoveNext()
Do I need to apply different attributes to the Enumerator class?
Thaks for your help,
Jo
The code:
< _
ClassInterface(ClassInterfaceType.None), _
Transaction(TransactionOption.Disabled), _
ComponentAccessControl(True), _
ConstructionEnabled(False), _
Description("Database Configuration"), _
EventTrackingEnabled(False), _
MustRunInClientContext(True), _
ObjectPooling(False), _
JustInTimeActivation(False), _
Synchronization(SynchronizationOption.Required) _
[quoted text, click to view] > _
Public Class FooManager
Inherits ServicedComponent
Implements IFooManager
' ...
Function List( _
ByVal parentId As Int32 _
) As IEnumerator Implements IFooManager.List
Return New FooEnumerator(parentId, m_dbCfg)
End Function
End Class
< _
ComVisible(True), _
ClassInterface(ClassInterfaceType.None) _
[quoted text, click to view] > _
Public Class FooEnumerator
Inherits MarshalByRefObject
Implements IEnumerator
'...
End Class