R
Richard Muller
Hi,
I new to ASP. I have a problem with an ASP script opening a file for
writing on my server. Here's how I got to this error:
I downloaded a neat FileUpload ASP example from
http://www.asp101.com/articles/jacob/scriptupload.asp.
I copied to my wwwroot folder on my Win2000AS/SP4 server:
- main .asp file
- a subordinate .asp file that the main file references; and
- a webform .html file
Because of the problem I encountered I added a number of debugging
statements to the script. Then I invoked the webform from a workstation
using IE6.0 by referencing the server's IP address appended with webform
..html file's name.
I completed the form with:
- Name: RLM
- File: F:\_Projects_Current\_Projects_ASP\Test\Upload_test.txt
and clicked Submit. I got the following error:
Microsoft VBScript runtime (0x800A0046)
Permission denied
/upload.asp, line 137
The offending line is:
Set oFile = oFS.CreateTextFile(sPath & FileName, True)
I commented out this line, which then yielded:
Thank you for your upload RLM
Saving to folder D:\UploadedFiles\
Validating existence of folder D:\UploadedFiles\
Saving data to D:\UploadedFiles\Upload_test.txt
File Uploaded: Upload_test.txt
Size: 21 bytes
Type: text/plain
Any ideas on how I can fix this?
--
Regards,
Richard
I can resist everything except temptation
Lord Darlington in "Lady Windermere's Fan" by Oscar Wilde
I new to ASP. I have a problem with an ASP script opening a file for
writing on my server. Here's how I got to this error:
I downloaded a neat FileUpload ASP example from
http://www.asp101.com/articles/jacob/scriptupload.asp.
I copied to my wwwroot folder on my Win2000AS/SP4 server:
- main .asp file
- a subordinate .asp file that the main file references; and
- a webform .html file
Because of the problem I encountered I added a number of debugging
statements to the script. Then I invoked the webform from a workstation
using IE6.0 by referencing the server's IP address appended with webform
..html file's name.
I completed the form with:
- Name: RLM
- File: F:\_Projects_Current\_Projects_ASP\Test\Upload_test.txt
and clicked Submit. I got the following error:
Microsoft VBScript runtime (0x800A0046)
Permission denied
/upload.asp, line 137
The offending line is:
Set oFile = oFS.CreateTextFile(sPath & FileName, True)
I commented out this line, which then yielded:
Thank you for your upload RLM
Saving to folder D:\UploadedFiles\
Validating existence of folder D:\UploadedFiles\
Saving data to D:\UploadedFiles\Upload_test.txt
File Uploaded: Upload_test.txt
Size: 21 bytes
Type: text/plain
Any ideas on how I can fix this?
--
Regards,
Richard
I can resist everything except temptation
Lord Darlington in "Lady Windermere's Fan" by Oscar Wilde