Re: Access denied in creating/opening a file on network for output

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ariel Popovsky (apopovsky_at_hotspamNOmail.com)
Date: 11/10/04


Date: Wed, 10 Nov 2004 07:48:39 -0800

Hello Wanda,

You should try granting access to that folder to the ASPNET user.

Greetings!
-----
Ariel Popovsky

> Hello,
>
> I tried to open a new file on network for output: (aspnet)
>
> FileOpen(intFile, "\\MachineName\path\subfolder\filename",
> OpenMode.Output)
>
> However, I received the following error message:
> System.UnauthorizedAccessException: Access to the path
> "\\MachineName\path\subfolder\filename" is denied.
>
> Here are my settings:
> 1. IIS: under directory security, I check off anonymous access, where
> UserName=ISUR_MachineName
> 2. For "\\MachineName\path" security, I add the account
> "MachineName\IUSR_MachineName" to full control.
> What have I done wrong? Or am I missing anything?
>
> PLEASE HELP!!!! Any advice would be greatly appreciated. Wanda
>



Relevant Pages

  • Re: File Creation on Network
    ... You know that in ASPNET all things are done by the ASPNET user, ... I am facing some challenges in creating a folder in the file server on ... The application will create a folder on the network ... My network user account has read/write access to the network folder. ...
    (microsoft.public.dotnet.general)
  • Re: Issues in locking down aspnet user security in shared environment
    ... lockdown aspnet user permissions. ... You can only traverse a folder if you know ... >> Does anyone see a security hole in this security model? ... >> How can I plug this hole with better lockdown? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Permissions Issues With ASPNET Account
    ... which I have granted permissions (ie. Read, Read & Execute, and List Folder ... Contents) to the ASPNET user account. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Permissions Issues With ASPNET Account
    ... which I have granted permissions (ie. Read, Read & Execute, and List Folder ... Contents) to the ASPNET user account. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Access Network Shares from asp.net
    ... the ASPNET user to be identical for the current user of the web server PC. ... > admins" and each user folder inherits that permission, ... > full access permissions for each user based on the folder. ...
    (microsoft.public.dotnet.framework.aspnet.security)