473,395 Members | 2,443 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,395 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 1010
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: 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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.