HighTechTalks DotNet Forums  

Re: Invalid ServicedComponent classes

Dotnet Framework (Component Services) microsoft.public.dotnet.framework.component_services


Discuss Re: Invalid ServicedComponent classes in the Dotnet Framework (Component Services) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Steffen Ramlow
 
Posts: n/a

Default Re: Invalid ServicedComponent classes - 08-01-2003 , 11:33 AM






Jonas wrote:
Quote:
Hi

I have a class that I want to place in COM+. But when I do I get the
following error.

1: Invalid ServicedComponent-derived classes were found in the
assembly. (Classes must be public, concrete, have a public default
constructor, and meet all other ComVisibility requirements)

I suspect that is has something to do with the sub New which I use to
input a parameter on object creation.

Public Sub New(ByVal UserSessionID As Guid)
MyBase.New()
End Sub

Argh... is this a constructor in VB.NOT? Weird. Well you are right, that is
the problem.

I bet this will help (I do not know VB.NOT):

Public Sub New()
MyBase.New()
End Sub

Quote:
Why can't I use this,
Because COM does not know constructors with parameter.





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.