Problem With Remoting Help ME

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!!
 
M

Michael Groeger

Gigi,

you should add a default constructor to your cCol class. Then it should
work.

Regards,
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top