Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


An error occurred on the server when processing the URL. Please contact the system administrator.

Posted on 2008-11-18
Medium Priority
Last Modified: 2012-05-05
Hello Experts,

I am trying to create a text file from the ASP script on the server but its giving me the above error.

Please can someone advise?

 set FSO = CreateObject("scripting.FileSystemObject") 'text file'
FileName = "test"
response.write filename
OutputDir = "C:\Web_Sites\FramedShare_Classic_ASP\OrderCSV\"
response.write outputdir
set myFile = fso.CreateTextFile(OutputDir & FileName & ".txt", true)  

Open in new window

Question by:learningnet
  • 2
LVL 82

Accepted Solution

hielo earned 2000 total points
ID: 22984951
set FSO = Server.CreateObject("scripting.FileSystemObject") 'text file'

Also, make sure that IUSR_ is allowed to write to OutputDir. If the user account that starts with IUSR_ does not have write permissions to the folder in question, your script will not work.

Author Comment

ID: 22985370
thanks hielo, that has worked.

my original problem has still not been resolved, i can open a new question for you if you could please assist me in .VBS script I have which runs weekly to update the DB and send CSV files

since last 2 weeks this is not working right, i mean its stopping it half way through for some reason ...

i wanted to add some debugging in the script which could show me how far it has worked and what is the error...

please can you help me here?

LVL 82

Expert Comment

ID: 22987176
>>my original problem has still not been resolved
Not sure what you are referring to but open a new problem.

>>i mean its stopping it half way through for some reason
Also, specify the size of your data

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
Loops Section Overview
Screencast - Getting to Know the Pipeline
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question