Create COM+ object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pavel Kocar

    #1

    Create COM+ object

    Hi,

    I can't start my service. This service run as user (with user right,
    security "run as service"). This service want to create COM + application
    run under this same user. If I want to start my service throws next
    exception:


    Service cannot be started. System.Unauthor izedAccessExcep tion: Access is
    denied.
    at System.Runtime. InteropServices .Marshal.ThrowE xceptionForHR(I nt32
    errorCode, IntPtr errorInfo)
    at System.Enterpri seServices.Thun k.Proxy.CoCreat eObject(Type serverType,
    Boolean bQuerySCInfo, Boolean& bIsAnotherProce ss, String& uri)
    at
    System.Enterpri seServices.Serv icedComponentPr oxyAttribute.Cr eateInstance(Ty p
    e serverType)
    at
    System.Runtime. Remoting.Activa tion.Activation Services.IsCurr entContextOK(Ty p
    e serverType, Object[] props, Boolean bNewObj)
    at MobileTouch.Cer tificateProvide r.OnStart(Strin g[] args)
    at System.ServiceP rocess.ServiceB ase.ServiceQueu edMainCallback( Object
    state)


    Can someone help me?

    P.K.


  • Arild Bakken

    #2
    Re: Create COM+ object

    "Pavel Kocar" <spam@ble.trage dy.com> wrote in message
    news:Ot5pjkzgDH A.616@TK2MSFTNG P11.phx.gbl...[color=blue]
    > Hi,
    >
    > I can't start my service. This service run as user (with user right,
    > security "run as service"). This service want to create COM + application
    > run under this same user. If I want to start my service throws next
    > exception:
    >
    >
    > Service cannot be started. System.Unauthor izedAccessExcep tion: Access is
    > denied.
    > at System.Runtime. InteropServices .Marshal.ThrowE xceptionForHR(I nt32
    > errorCode, IntPtr errorInfo)
    > at System.Enterpri seServices.Thun k.Proxy.CoCreat eObject(Type[/color]
    serverType,[color=blue]
    > Boolean bQuerySCInfo, Boolean& bIsAnotherProce ss, String& uri)
    > at
    >[/color]
    System.Enterpri seServices.Serv icedComponentPr oxyAttribute.Cr eateInstance(Ty p[color=blue]
    > e serverType)
    > at
    >[/color]
    System.Runtime. Remoting.Activa tion.Activation Services.IsCurr entContextOK(Ty p[color=blue]
    > e serverType, Object[] props, Boolean bNewObj)
    > at MobileTouch.Cer tificateProvide r.OnStart(Strin g[] args)
    > at System.ServiceP rocess.ServiceB ase.ServiceQueu edMainCallback( Object
    > state)
    >
    >
    > Can someone help me?
    >
    > P.K.[/color]

    By "create COM+ application" I assume you mean "instantiat e component hosted
    in COM+ application" ?

    What OS are you using?
    Have you enabled security on the COM+ application?
    Does the COM+ app start when you start the service?
    Do you get the same error if you start the COM+ app manually before starting
    the service?


    Arild


    Comment

    Working...