Using secured COM+ component over a ASP.net WebService with impersonate

From: Tobias Ulm (TobiasU@ppedv.de)
Date: 03/12/03


From: "Tobias Ulm" <TobiasU@ppedv.de>
Date: Wed, 12 Mar 2003 11:01:40 +0100


Hi to all,

we have a application which is designed as follows:

a asp.net client with windows nt auth.
a asp.net webservice with impersonate=true
a COM+ dll which is called over DCOM (the dll is on a remote W2k Server and
only restiricted users can access this dll., the webservice server and the
remote com+ server are on the same domain)

i know that asp .net is MTA and a call to COM+ or DCOM is STA, so i wrote a
class which is called from the webservice to make a new thread in STA mode.
I use following code and when i make the call over a special user i get
always a access denied error. If i don't use impersonate and select anonymus
in IIS and use a user account which is allowed to the COM+ server for the
anonymus, it works fine. has anyone an idea?

code:

WindowsImpersonationContext ctxt = null;
WindowsIdentity wid =(WindowsIdentity)User.Identity;
ctxt = wid.Impersonate();
// Access some STA COM object that requires impersonation.
myComp newComp;
newComp = new myComp;
newComp.Method();//here's an error thrown

many thanx

Tobi



Relevant Pages

  • Re: Microsoft VBScript runtime error 800a01ad
    ... Dave, I found this article and, after following its instructions, got my DLL ... Debbie wrote: ... operating system is Windows Server 2003, Standard x64 Edition, Service ...
    (microsoft.public.inetserver.asp.components)
  • Re: Kerberos delegation trauma
    ... I have created a dll which has the code that creates a process that calls the ... > Kerberos delegation won't solve this. ... >> when the tool on my machine tries to access the server. ... On my machine I have set IE to have Enable Integrated Windows ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Can we publish orchestration dll from the workstation as webs
    ... Then i hv published my orch as webservice and i manullay copied the orch ... webservice and placed the dll in the server meachine,Even now my webports ... > with the server. ...
    (microsoft.public.biztalk.general)
  • Re: The call to Server.CreateObject failed while checking permissions. Access is denied to this obje
    ... Why did I have to do this when using .NET and Windows Server 2003, ... > SERVICE account. ... When I compiled it in a DLL ... The server is running Windos Server 2003. ...
    (microsoft.public.dotnet.framework.component_services)
  • RE: Windows 2000 Server hangs so frequently
    ... This server keeps hanging at least once ... When I check on running processes on Windows Task Manager screen, ... it normalises and hangs again after a few days. ... that a COM+ .dll file can run in it's own process space. ...
    (microsoft.public.win2000.general)