Re: creating folders with asp.net

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Norman Yuan (nobody_at_nowhere.no)
Date: 06/29/04


Date: Mon, 28 Jun 2004 17:23:59 -0700

Depending whst account is running the ASP App (default to ASPNET account on the IIS server computer, you could impersonate it to any other account with different access permissions), the account must have write/modify permission to create folder (but let ASP.NET user create folder in "C:\WINNT\System32"? you'd better be very careful, the account must be local admin.).

Right-click a folder where you want ASPNET account to have write permission, choose "Properties" and then Security tab, add the account into user account list (ASPNET), and then set proper permissions to the account.

  "Arvind P Rangan" <arvind99@hotmail.com> wrote in message news:uwdmeGRXEHA.1144@TK2MSFTNGP12.phx.gbl...
  Hi,

  I have tried creating folders through ASP.Net with Directory.Create(path)

  But it gives me error

  mscorlib Access to the path "C:\WINNT\system32" is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path) at System.IO.Directory.CreateDirectory(String path)

  Can somebody help how to solve this.
  I have tried giving all possible rights on the folder still it doesnot work.

  Application is Windows Authenticated.

  Thanks
  Arvind.



Relevant Pages

  • Re: dts and access db
    ... How can I setup permission for sa account under \\server\data folder? ... The service account for SQL Server ... >>already opened exclusively by another user, or you need permission to view ...
    (microsoft.public.sqlserver.dts)
  • RE: IIS anonymous access
    ... Since your asp page only needs to read the file from the unix folder, I'd suggest you can only grant the read permission to this domain account on ...
    (microsoft.public.inetserver.iis.security)
  • RE: User name password dialogue box
    ... If you site doesn't grant the permission to one account and disable the ... Right-click the 1033 folder to open the folder property dialog. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: IIS 6 & UNC Share Scurity Issue
    ... server admin tool that the permission was applied to the share locally ... The access is being denied is for the account rcareyad, ... have full NTFS right on the folder. ... cluster is 64 bit and all are VM's inside VMware ESX 3.5. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Win XP assigns me new "user" folder - creates problem - how can I get it to use my old "
    ... I set it up to allow EVERYONE to have read and execute permission but ... I looked at another account and copied the permissions on that account ... I did the same for my user folder. ... to load my personal settings and log me in... ...
    (microsoft.public.windowsxp.help_and_support)