Re: I get "Access is denied" when I try to instantiate remotely a DCOM component

From: Arild Bakken (arildb_@hotmail.com)
Date: 11/11/02


From: "Arild Bakken" <arildb_@hotmail.com>
Date: Mon, 11 Nov 2002 19:13:08 +0100


I'm guessing that the problem is that ASP.NET is running under a local
account (MACHINE\ASPNET) which is a foreign security principal with regards
to the DCOM application on the other computer. If I'm not mistaken, Everyone
means every authenticated user, which of course, the foreign ASPNET account
is not.

Arild

"iiuga" <iulian.iuga@audicon.net> wrote in message
news:#7ckQ$ZiCHA.1428@tkmsftngp11...
Hi again,

I forgot to say that the DCOM application has Everyone set for access and
launch permissions!
"iiuga" <iulian.iuga@audicon.net> wrote in message
news:ug5UOqZiCHA.2288@tkmsftngp12...
Hi all,

Basically I have two problems, the first one and the bigger one is trying to
instantiate a DCOM component on a different computer from my ASP.NET
application. The code looks like following:

                ...
                Type _tip = Type.GetTypeFromProgID( "<ProgID>", "<Server>",
false );
                hdlSample = System.Activator.CreateInstance(_tip);
                ...

and I'm getting "Access id denied". Then I created a new Windows account
that's also member ob Users group as ASPNET user and I give it similar
rights from Local Policies -> User Rights Assignment like ASPNET user. I
moved the code from the ASP.NET application in a normal windows application
and I run it in the context of new created user. It worked!!! Does ASPNET
user has something special settings? Where can I find and modify them?
The second problem I encountered was changing the password of ASPNET windows
account. Then the aspnet_wp.exe was not started anymore by inetinfo.exe
process. The solution I found was changing the machine.config file, and set
the similar value to the password attribute of processModel tag. But I would
like to keep the value of this attribute to the AutoGenerate value and reset
the password of ASPNET user, but where can I find this password value? I'm
sure it is stored somewhere, like the passwords of IUSR_<machine> and
IWAM_<machine> are in the IIS metabase.
Thanks in advance for you help,
Iulian Iuga



Relevant Pages

  • Re: Event viewer Account specified is different" errors
    ... MSDTC, enabling DCOM, and so on.StiSvc service is the Windows Image Acquisition service. ... under the proper account. ... TweakHound - Windows XP Services Default Settings Guidehttp://www.tweakhound.com/xp/defserv.htm ...
    (microsoft.public.windowsxp.general)
  • Re: Event viewer Account specified is different" errors
    ... MSDTC, enabling DCOM, and so on. ... StiSvc service is the Windows Image Acquisition service. ... under the proper account. ... Local System account should be selected | ...
    (microsoft.public.windowsxp.general)
  • Re: Starting a new Process under a Specified Windows Account
    ... One option is to impersonate your application to run under that windows ... account and then start the process. ... it is started under the ASPNET User. ... > How do you programatically start a process under a specific Windows User ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Server Error in /MyWebForm Application
    ... You know you can buy the Developer Edition of SQL 2000 for under $50. ... I can't find an ASPNET account. ... it will run under the ASPNET user. ... MSDE does NOT come with a GUI. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How is the ASPNET password managed?
    ... IUSR_ComputerName account for IIS, which you can control, if you so desire. ... > I notice that ASP.NET has a user that runs on its behalf (ASPNET user). ... > an concerned about site security and would like it if someone can explain ... > function for WindowsIdentity account validation. ...
    (microsoft.public.dotnet.framework.aspnet)