473,385 Members | 1,582 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 1009
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: 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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.