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

Posted on 2008-11-18
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
    LVL 82

    Accepted Solution

    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

    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

    >>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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Welcome, welcome!  If you are new to the series and haven't been following along, please take a brief moment to review the first three installments: Part 1 (…
    Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  ( Here (http…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now