#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    2
    Rep Power
    0

    Unhappy Accessing COM+ components


    Hi,
    I have an application that makes use of a COM+ component. Ihave registered the component. I also have impersonated a user in the web.congif file and set impersonation=true.
    My application works fine, until the point where it needs to acces the COM+ component. At this time i get the following error:

    [UnauthorizedAccessException: Access is denied.]
    System.Runtime.InteropServices.Marshal.BindMoniker(UCOMIMoniker pmk, UInt32 grfOpt, Guid& iidResult, Object& ppvResult) +0
    System.Runtime.InteropServices.Marshal.BindToMoniker(String monikerName) +109
    StoryLife.CheckoutSummary.btnPurchase_Click(Object sender, ImageClickEventArgs e) +930


    When i turn user impersonation =false, it all works just fine.

    Does anyone have an idea as to why this might be happening?

    Thanks,
    Neet
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    Argentina
    Posts
    10
    Rep Power
    0
    Yeaaa! I think your Impersonation user has not enough privilege to do that your COM+ is trying to do!

    To probe my theory you can logon with your “impersonator user” as a Console User (grant privileges to do it), turn impersonate to off for the component and try to run your application! If it works I did a bad bet, else Grant privileges to your user!


    Bye!

IMN logo majestic logo threadwatch logo seochat tools logo