473,385 Members | 1,506 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem With Remoting Help ME

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

Jul 21 '05 #1
2 1008
Gigi,

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

Regards,
Michael

"Gigi" <g@msn.com> schrieb im Newsbeitrag
news:u8**************@TK2MSFTNGP12.phx.gbl...
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!!

Jul 21 '05 #2
Thank You
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Linesh Gajera | last post by:
Hi, I have unique problem. I have configured RemotingServer running as Console Application and my Remoting object access Oracle database. My remoting object make call to Oracle database and...
9
by: Sudesh Sawant | last post by:
Hello, We have an application which communicates using remoting. There is a server which is a Windows Service. The server exposes an object which is a singleton. The client is a Web Application...
0
by: Deepal | last post by:
Hi; I'm doing an example program from a book regarding .NET Remoting. Both the Client and Server are C# Console Applications. Server Code is using System; using System.Runtime.Remoting;...
1
by: David Krmpotic | last post by:
Hi All! I have a .NET remoting Client-Server application with Server Activated Objects only.. something is worrying me.. sometimes (rarely), I can't connect to the server although it is...
0
by: Martijn Damen | last post by:
Hi, At the moment I am trying to develop an application that uses another app over .net remoting and having some problems with it (ok, that is ofcourse why I am here), hope somebody can shine a...
12
by: Steven Berkovitz | last post by:
I have several ASP.NET applications with near identical web.config files. In one of them I am successfuly able to bind to an assembly while on others I am not. All of them have the following...
1
by: Thomee Wright | last post by:
I'm having a problem with a pair of applications I'm developing. I have a server application which interacts with several instruments, and a client app which connects to the server and provides a...
0
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false);...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.