Wednesday, September 10, 2008

ASP write data to file error

Microsoft VBScript runtime error '800a0046'
Permission denied
/test/tmp.asp, line 15

Since the tmp.asp has to WRITE the file to server's file system, it is possible that the location you are trying to save uploaded file may not have WRITE permission for the user IUSR_MachineName. Please contact your website's system administrator to enable both READ and WRITE permissions for the folder where you want to keep (WRITE) uploaded files.

Note: if the error still shows up, make sure you specify the full path of the file in your script.

To output Path Info:
Response.Write Request.ServerVariables("PATH_INFO")
Response.Write Request.ServerVariables("PATH_TRANSLATED")

No comments: