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

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

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
learningnetAuthor Commented:
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?

>>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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.