Re: read and write file from network drive (NAS)

From: Tony Bukres (tony_at_dotnet-hosting.moc)
Date: 06/27/05


Date: Mon, 27 Jun 2005 08:55:29 -0700

On Sun, 26 Jun 2005 19:07:04 -0700, oceandeep wrote:

> I have a NAS machine within the dmzone with IP 192.168.11.xxx
> where i want to write and read file from a designated location
>
> I have created 2 folders "source" and "target" in the NAS, which i can
> access through explorer
> from the Web Server Machine by UNC path "\\192.168.11.xxx\source" and
> "\\192.168.11.xxx\target" respectively.
>
> However, in ASP.net (VB) code when i tried to read the file by the same UNC
> path "\\192.168.11.xxx\source" , it returns error message "Logon failure:
> unknown user name or bad password"
>
> I have tried to allow full control of ASPNET user in the NAS and put ASPNET
> user in the webserver side to the group "administrators" but still doesnt
> help.
>
> I searched through the web and found some results about i have to
> "impersonate" the ASP.NET instance and assign a valid username and password
> of the NAS. I have followed this article
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;306158#2 and
> implemented the code to impersonate a different user.
>
> my webserver platform is Win 2003, VS.net 2003 , .Net Framework 1.1
>
> thanks!

Are you using Active Directory? If yes, you need to set up delegation in
the domain controller.

Tony

-- 
http://www.dotnet-hosting.com
Free web hosting with ASP.NET & SQL Server
No ads  - Innovative features


Relevant Pages

  • Re: read and write file from network drive (NAS)
    ... Thanks for reply, i am not using active directory, those machinese are just ... >> I have tried to allow full control of ASPNET user in the NAS and put ASPNET ... > Free web hosting with ASP.NET & SQL Server ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • failure audit to user areas on NAS 2003 server
    ... We have recently installed an HP1200s NAS server running win2003 storage ... We have moved user areas from our domain controller to ... The domain controller does not have this problem so eg users are still able ...
    (microsoft.public.windows.server.security)
  • fatal security problem
    ... aspnet user is member of usergroup 'domain user' like the IUSR_machine ... as aspnet user needs read/write permission to certain system folders, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • read and write file from network drive (NAS)
    ... I have a NAS machine within the dmzone with IP 192.168.11.xxx ... I have tried to allow full control of ASPNET user in the NAS and put ASPNET ... implemented the code to impersonate a different user. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • ASP. NET on Windows 2003 DC.
    ... Are there any problems running ASP.NET pages on a Windows ... 2003 domain controller; as there are on windows 2000 ... the ASPNET user seems to be ...
    (microsoft.public.dotnet.framework.aspnet.security)