ASP.Net File Upload in Windows 2003 Server
Posted on 2004-08-17
Currently I find myself banging my head against a wall.
We wrote a website in ASP.Net. As part of our administration backend, we have an image/document gallery popup-page that is used to upload documents and images to our Windows 2003 Web Edition server. Unfortunatly, it seems that the C# code used to write the file on the server fails autentication , and I get the following exception:
Access to the path "Inetpub/Website/Images/MyImage.jpg" is denied.mscorlib at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.File.Delete(String path) )
On our windows xp workstations, we were able to get the code working by simply granting the account aspnet write-access. However, this method fails to rememdy the problem on the Windows 2003 server. Which account should one grant access in order to get the upload working?
I think a checklist of steps needed in order to grant asp.net access to certail folders would help a great deal.