G
Gigi
I have write a DLL server
I have this problem : when I call one specific function to the inside Class
i have this error :
"Impossible to find the constructor demanded for deserialize a object of
type DllServer.NetApi+cColl
This is my Class, I have only specified the interested part
Public Class NetApi
Inherits MarshalByRefObject
Implements IDisposable
Private mColl As cColl
Public ReadOnly Property PropertyColl As cColl
Get
Return mUsersAndGroups
End Get
End Property
Public Function PopulateColl () As Integer
mcoll.add ....
mcoll.add ....
end function
Public Sub Dispose() Implements System.IDisposable.Dispose
mcoll = Nothing
End Sub
<Serializable()> _
Public Class cColl
Inherits NameObjectCollectionBase
Sub Add(ByVal Group As CGroup)
Me.BaseAdd(Group.Name, Group)
End Sub
Sub Add(ByVal User As cUser)
Me.BaseAdd(User.Name, User)
End Sub
Public Property Items(ByVal index As Integer) As Object
Get
Return Me.BaseGet(index)
End Get
Set(ByVal value)
Me.BaseSet(index, value)
End Set
End Property
End Class
End Class
excused for my English, i'm italian!!
I have this problem : when I call one specific function to the inside Class
i have this error :
"Impossible to find the constructor demanded for deserialize a object of
type DllServer.NetApi+cColl
This is my Class, I have only specified the interested part
Public Class NetApi
Inherits MarshalByRefObject
Implements IDisposable
Private mColl As cColl
Public ReadOnly Property PropertyColl As cColl
Get
Return mUsersAndGroups
End Get
End Property
Public Function PopulateColl () As Integer
mcoll.add ....
mcoll.add ....
end function
Public Sub Dispose() Implements System.IDisposable.Dispose
mcoll = Nothing
End Sub
<Serializable()> _
Public Class cColl
Inherits NameObjectCollectionBase
Sub Add(ByVal Group As CGroup)
Me.BaseAdd(Group.Name, Group)
End Sub
Sub Add(ByVal User As cUser)
Me.BaseAdd(User.Name, User)
End Sub
Public Property Items(ByVal index As Integer) As Object
Get
Return Me.BaseGet(index)
End Get
Set(ByVal value)
Me.BaseSet(index, value)
End Set
End Property
End Class
End Class
excused for my English, i'm italian!!