Access denied while trying QI on a DCOM object

Discussion in 'ASP .Net Security' started by Craig Lee, Feb 28, 2004.

  1. Craig Lee

    Craig Lee Guest

    We have a Web Service written in C# that accesses an ATL service via DCOM.
    This all works great when both are on the same machine.

    When I move to a two server scenario, I get an Access Denied error.

    What is interesting is that I am able to get the Class Factory and then
    create an instance of a COM interface. But I get the Access Denied error
    when I then try and QueryInterface to another interface.

    This all worked great under .NET 1.0. Has something changed in 1.1?

    Thanks,

    cl.
    Craig Lee, Feb 28, 2004
    #1
    1. Advertising

  2. Craig Lee

    Craig Lee Guest

    I think that I figured it out with the help of a good Google hit (thank
    goodness for Google). I was code that was setting the SecurityBlanket on
    the interfaces but I wasn't setting it on the IUnknown interface. Thus,
    when I did a QI against the first interface, I got an Access Denied error.

    cl.

    "Craig Lee" <> wrote in message
    news:O$aKYKZ$...
    > We have a Web Service written in C# that accesses an ATL service via DCOM.
    > This all works great when both are on the same machine.
    >
    > When I move to a two server scenario, I get an Access Denied error.
    >
    > What is interesting is that I am able to get the Class Factory and then
    > create an instance of a COM interface. But I get the Access Denied error
    > when I then try and QueryInterface to another interface.
    >
    > This all worked great under .NET 1.0. Has something changed in 1.1?
    >
    > Thanks,
    >
    > cl.
    >
    >
    Craig Lee, Feb 28, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex
    Replies:
    3
    Views:
    1,477
    Alvin Bruney
    Dec 2, 2003
  2. bri

    access denied...dcom server

    bri, Dec 2, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    2,486
  3. DotNetJunkies User

    Access denied to DCOM ASP.net WinXP sp2

    DotNetJunkies User, Oct 8, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    466
    =?Utf-8?B?VWJiZTE3?=
    Oct 11, 2004
  4. =?Utf-8?B?VWJiZTE3?=

    access denied to DCOM, winXP sp2

    =?Utf-8?B?VWJiZTE3?=, Oct 8, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    3,114
    =?Utf-8?B?VWJiZTE3?=
    Oct 14, 2004
  5. Replies:
    0
    Views:
    1,712
Loading...

Share This Page