Hello,
I very frustrated in the last days. i not able to run the application again. Here are some VB.NET samples to show my Prolem
IBase
Thanks for the help and helpfull ideas!!!
I very frustrated in the last days. i not able to run the application again. Here are some VB.NET samples to show my Prolem
IBase
Public Interface IBase
Event ServerCalled As ServerCalledEventHandler
End Inteface
IUserManagement<InheritedExport(GetType(IBase))>
Public Interface IUserManagement
Inherits IBase
[....]
End Interface
ClassBasePublic Class ClassBase
Implements IBase
Public Event ServerCalled(args As DataExtensions.DataSource.ClientCallerArgs) Implements IBase.ServerCalled
[...]
End Class
UserManagement (Serverside)<ZyanComponent(GetType(IUserManagement)),
PartCreationPolicy(ComponentModel.Composition.CreationPolicy.Shared)>
Public Class UserManagement
Inherits ClassBase
Implements IBase
[...]
End Class
AdminUsersViewModel (Clientside)Public Class AdminUsersViewModel
Inherits ViewModel
Private _ZyanProxy As IUserManagement
Private _VDataManager As VirtualDataManager
Public Sub New()
_ZyanProxy = ConnectClient.Connection.CreateProxy(Of IUserManagement)()
_VDataManager = New VirtualDataManager
AddHandler _ZyanProxy.ServerCalled, AddressOf _VDataManager.ServerCalled
[...]
End Class
If I try so set the AddHandler, then come up the following error:"System.Collections.Generic.KeyNotFoundException" in Zyan.Communication.DLL ...
Where is the problem? Is it the MEF or Zyan? I have download the actual sourcecode and compile them for my application. I hope someone understand my problemThanks for the help and helpfull ideas!!!