
October 21st, 2004, 07:31 AM
|
|
Registered User
|
|
Join Date: Oct 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
IIS ASP Write permissions
Hi
This is what I'm trying to do. From an ASP.NET script (using XP, IIS), I want to create and write to a file in the local directory. The script is http://localhost/images/asptest.aspx and I want to write to a file located in the images directory, next to the aspx file. What permissions should I set under IIS? I tried to give write permissions to the images folder but no luck, the exception that I'm getting is "System.Exception: System.UnauthorizedAccessException: Access to the path c:\inetpub\wwwroot\images\1.jpg is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.File.OpenWrite(String path)..."
I would appreciate your help on this one, I know it must be something simple..
Regards,
radu
|