Re: ASP.NET application cannot access network drive

From: Naveen K Kohli (naveenkohli_at_hotmail.com)
Date: 07/17/03


Date: Thu, 17 Jul 2003 11:38:58 -0400


When you created ASPNET or IUSer_XXXX account on giga drivem the passwords
also have to match. So there are 2 options you have. On your web server
change the password for ASPNET account. And then on network system create
the account with same account. Or more elegant will be to create an account
in domain and use that to impersonate ASP.Net. And then give that user
rights to access network drive.

-- 
Naveen K Kohli
http://www.netomatix.com
"James N" <anonymous@devdex.com> wrote in message
news:eNsZmr8SDHA.2092@TK2MSFTNGP10.phx.gbl...
> My ASP.NET application needs read/write permissions for drive "Z:",
> which is mapped to my Linksys Gigadrive (Network Attached Storage...if
> anyone is familiar with that).
>
> If I configure the Gigadrive with "Guest" access rights, then everything
> works fine, BUT this leaves the drive vulnerable to everyone/everything
> including network viruses.  Lately, my drive has had several attacks by
> the Lovegate virus.
>
> Eliminating such attacks requires making my drive private, meaning I
> must remove "Guest" access rights and only allow logged-in users to
> access the drive through the ASP.NET applicaiton.
>
> The problem is that without "guest" access rights, the ASP.NET
> application itself cannot access the drive!
>
> Is my ASP.NET application a "user" that I must add to the list of
> priviledged users on the Gigadrive?  Well, I tried adding users "ASPNET"
> and "IUSR_MyComputer" to the Gigadrive, but it didnt seem to work.
>
> Again, if I allow the "Everyone" group (which includes the user "Guest")
> to have persmission to the drive, then everything works.
>
> Can someone please help me?
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!


Relevant Pages

  • Re: 401.3 error with IIS 6.0 on Windows Server 2003
    ... You shouldn't need to add IUSR or ASPNet accounts. ... w3wp runs under Network Service, or whatever you configure the app pool to ... Access to be files will be done using the account ... : Network and Network Service: Read/Write/Execute ...
    (microsoft.public.inetserver.iis.security)
  • 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: HELP Connection error on Release mode
    ... > I would assume that the account can, since my other application accesses a> database not on that server and is located elsewhere on the network. ... >> locally using ASPNET, ... My>>> development computer is setup fairly identical to the test server, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: HELP Connection error on Release mode
    ... which can't access the network. ... > The database is on another machine I am not sure what you mean by changing the account to an> account that has access to the network. ... Most likely, this is the ASPNET ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Directory.Exists
    ... | string FilePath=PF.GetProjectPath; ... That's because you don't have any access rights to the ... share, note that the default account 'aspnet', doesn't even have network ... privileges to access the network share. ...
    (microsoft.public.dotnet.languages.csharp)