November 11th, 2003, 01:08 PM
Accessing COM+ components
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?
November 27th, 2003, 09:36 AM
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!