Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Security / February 2004

Tip: Looking for answers? Try searching our database.

Access denied while trying QI on a DCOM object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig Lee - 28 Feb 2004 00:34 GMT
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 - 28 Feb 2004 01:37 GMT
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.

> 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.
[quoted text clipped - 10 lines]
>
> cl.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.