Re: creating folders with asp.net
From: Norman Yuan (nobody_at_nowhere.no)
Date: 06/29/04
- Next message: Mike Shafer: "Grabbing handles on another process' forms"
- Previous message: Michael C: "Hey Jon Skeet"
- Maybe in reply to: M. Zeeshan Mustafa: "Re: creating folders with asp.net"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Mike Shafer: "Grabbing handles on another process' forms"
- Previous message: Michael C: "Hey Jon Skeet"
- Maybe in reply to: M. Zeeshan Mustafa: "Re: creating folders with asp.net"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|