Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: COM+ & SharedPropertyGroupManager


Message #1 by =?iso-8859-2?Q?Gorazd_=A9pajzer?= <gorazd.spajzer@u...> on Fri, 1 Dec 2000 12:26:20 +0100
This is a multi-part message in MIME format.



------=_NextPart_000_025F_01C05B91.E8D48040

Content-Type: text/plain;

	charset="iso-8859-2"

Content-Transfer-Encoding: quoted-printable



HI !



I developed an COM+ object and put it in Component services unde 

WIN2000.

My class Implements

ObjectControl

and i implement Activate (i retrive ObjectContext) and deactivate.

What is wrong whith my calling of 

m_objContext.CreateInstance("COMSVCSLib.SharedPropertyGroupManager") 

????????

I get An error Active X can't create object







Private Sub ObjectControl_Activate()

    Set m_objContext =3D GetObjectContext

End Sub



Private Function ObjectControl_CanBePooled() As Boolean

    ObjectControl_CanBePooled =3D False

End Function



Private Sub ObjectControl_Deactivate()

    Set m_objContext =3D Nothing

End Sub





sub someTask



Dim objPropertyGroupManager As SharedPropertyGroupManager

Set objPropertyGroupManager =3D 

m_objContext.CreateInstance("COMSVCSLib.SharedPropertyGroupManager")



end sub









Thanks,

GoRaZD






Message #2 by "StephenB" <stephenb@w...> on Fri, 1 Dec 2000 12:04:18 -0000
Could be permissions again?  Amazing how problems come in bunches.



From another question, you might try this:



Give IUSR_<machinename> permissions using the DCOMCNFG.EXE utility, which

you should find in C:\WinNT\system32 .  See

http://support.microsoft.com/support/kb/articles/Q192/1/52.ASP for

information on using the utility.



Stephen

"Gorazd Špajzer" <gorazd.spajzer@u...> wrote in message

news:22174@a..._components...

>

> This is a multi-part message in MIME format.

>

> ------=_NextPart_000_025F_01C05B91.E8D48040

> Content-Type: text/plain;

> charset="iso-8859-2"

> Content-Transfer-Encoding: quoted-printable

>

> HI !

>

> I developed an COM+ object and put it in Component services unde 

> WIN2000.

> My class Implements

> ObjectControl

> and i implement Activate (i retrive ObjectContext) and deactivate.

> What is wrong whith my calling of 

> m_objContext.CreateInstance("COMSVCSLib.SharedPropertyGroupManager") 

> ????????

> I get An error Active X can't create object

>

>

>

> Private Sub ObjectControl_Activate()

>     Set m_objContext =3D GetObjectContext

> End Sub

>

> Private Function ObjectControl_CanBePooled() As Boolean

>     ObjectControl_CanBePooled =3D False

> End Function

>

> Private Sub ObjectControl_Deactivate()

>     Set m_objContext =3D Nothing

> End Sub

>

>

> sub someTask

>

> Dim objPropertyGroupManager As SharedPropertyGroupManager

> Set objPropertyGroupManager =3D 

> m_objContext.CreateInstance("COMSVCSLib.SharedPropertyGroupManager")

>

> end sub

>

>

>

>

> Thanks,

> GoRaZD

>

> ------=_NextPart_000_025F_01C05B91.E8D48040

> Content-Type: text/html;

> charset="iso-8859-2"

> Content-Transfer-Encoding: quoted-printable

>

> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

> <HTML><HEAD>

> <META http-equiv=3DContent-Type content=3D"text/html; 

> charset=3Diso-8859-2">

> <META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>

> <STYLE></STYLE>

> </HEAD>

> <BODY bgColor=3D#ffffff>

> <DIV><FONT face=3DArial size=3D2>HI !</FONT></DIV>

> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>

> <DIV><FONT face=3DArial size=3D2>I developed an COM+ object and put it 

> in Component

> services unde WIN2000.</FONT></DIV>

> <DIV><FONT face=3DArial size=3D2>My class Implements </FONT></DIV>

> <DIV><FONT face=3DArial size=3D2>ObjectControl</FONT></DIV>

> <DIV><FONT face=3DArial size=3D2>and i implement Activate (i retrive 

> ObjectContext)

> and deactivate.</FONT></DIV>

> <DIV><FONT face=3DArial size=3D2>What is wrong whith my calling of

> m_objContext.CreateInstance("COMSVCSLib.SharedPropertyGroupManager")

> ????????</FONT></DIV>

> <DIV><FONT face=3DArial size=3D2>I get An error Active X can't create

> object</FONT></DIV>

> <DIV><FONT face=3DArial size=3D2><BR> </DIV></FONT>

> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>

> <DIV><FONT face=3DArial size=3D2>Private Sub 

> ObjectControl_Activate()</FONT></DIV>

> <DIV><FONT face=3DArial size=3D2>    Set m_objContext =3D 

>

> GetObjectContext<BR></FONT><FONT face=3DArial size=3D2>End 

> Sub</FONT></DIV>

> <DIV><FONT face=3DArial size=3D2><BR>Private Function 

> ObjectControl_CanBePooled() As

> Boolean</DIV>

> <DIV>    ObjectControl_CanBePooled =3D False</DIV>

> <DIV>End Function</DIV>

> <DIV><BR>Private Sub ObjectControl_Deactivate()</DIV>

> <DIV>    Set m_objContext =3D Nothing</DIV>

> <DIV>End Sub</FONT></DIV>

> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>

> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>

> <DIV><FONT face=3DArial size=3D2>sub someTask</FONT></DIV>

> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>

> <DIV><FONT face=3DArial size=3D2>Dim objPropertyGroupManager As

> SharedPropertyGroupManager</FONT></DIV><FONT face=3DArial size=3D2>

> <DIV>Set objPropertyGroupManager =3D

> m_objContext.CreateInstance("COMSVCSLib.SharedPropertyGroupManager")<BR><

> /DIV>

> <DIV>end sub</DIV>

> <DIV> </DIV>

> <DIV> </DIV>

> <DIV> </DIV>

> <DIV> </DIV>

> <DIV>Thanks,</DIV>

> <DIV>GoRaZD</FONT></DIV></BODY></HTML>

>

> ------=_NextPart_000_025F_01C05B91.E8D48040--

>

>

>






  Return to Index