Any time you see the access to path denied error, that’s usually because you have not properly granted permission to the folder for the process that is actually running ASP.NET. This is often the NETWORK SERVICE account, NOT the ASPNET worker account (WS 2003 and later).
It is also possible that you are either not changing the name of the file being written, or you are not closing it and destroying the file object before someone else creates it. Only one user at a time can have a file open.
Comments
Leave a comment Trackback