Re: ASP.NET application cannot access network drive

From: James N (email_this_guy_at_yahoo.com)
Date: 07/18/03


Date: Thu, 17 Jul 2003 18:58:12 -0700


I GOT IT TO WORK! WOOHOOOO!!!!

I finally figured out a way to disable all "guest" access to the NAS
drive, and only allow my ASP.NET application to access it. The solution
was to create a new "ASPNET" user account on the NAS drive WITHOUT
setting any password. This "ASPNET" account is made to correspond to
the same "ASPNET" user account that IIS uses to execute the ASP.NET
application in the Windows environment.

The key here is to leave the password field blank. The reason for this
is that (although I could be wrong) notice in the machine.config file
(at least my machine.config file) that the username/password attributes
of the <processModel> tag is "machine"/"AutoGenerate". This gives me
the notion that the password for Window's "ASPNET" account is
automatically generated by Windows/IIS, thus, requiring the password
field in NAS to be set blank (to accept any password that IIS may have
generated) for its ASPNET user. Only then will it be possible for the
NAS to authenticate the ASPNET user and allow access. By allowing only
the "ASPNET" user and disallowing the "guest" user, I believe that my
NAS will now be safe from any unwanted network intruders.

And finally thanks to everyone who has offered input and tried to help.

Oh, one more thing to note, and this may probably invalidate my whole
reasoning above. A lot of advices I get from ppl on these forums is to
create a user account on the NAS that matches the user account that the
Windows' aspnet_wp.exe worker process uses. What I did above is the
same thing, just that I didnt not set a password for the account.

So I decided to try setting a same password for the "ASPNET" user both
in Windows ("Admin Tools" -> "Comp Management" -> "Local Users and
Groups" -> "Users") and in NAS. I also modifed the <processModel> tags
in machine.config so that username/password = "ASPNET"/"(password)".
Strangely, this did not work.

Some other people say to let the aspnet_wp.exe process use an existing
Window user's account to run. So in machine.config I set
username/password = "myUsername"/"(myPassword)". I created the same
account on the NAS as well. Again, sadly, this method did not work
either.

But who cares now??!! It working!! LOL

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: Access Denied Temporary ASP.NET files
    ... ASPNET, so all the security experiments I was making were ... >SERVICE account, unless you have modified the settings. ... >> I have a web service which is working on a Windows XP ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: router, windows authentication and passing credentials
    ... Bear in mind that Windows 2000 does *NOT* support impersonation by the ... ASP.NET worker process account. ... The reason is that the ASPNET account lacks ... web service router ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Is the aspnet account called "aspnet" for all non-English versions of Windows and IIS?
    ... For Windows 2003 Server, the aspnet account is "network service". ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET impersonation generating configuration error
    ... If you are using Windows 2000 and the default ASP.NET processModel (with the ... ASPNET local machine account), you can't use that version of impersonation ... the only account that has that privilege is SYSTEM. ...
    (microsoft.public.dotnet.security)
  • Re: On resume password protect
    ... ASPNET is on the does not count as more than one user list. ... ..Net Framework 1.1 is installed onto a Windows XP computer. ... What is the ASP.NET Machine Account? ... display Welcome screen is displayed if... ...
    (microsoft.public.windowsxp.security_admin)