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

x
?
Solved

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

Posted on 2008-11-18
3
Medium Priority
?
1,413 Views
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?

thanks
kay
<% 
 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)  
myFile.Write("##|OrderID|Company|Symbol|Exchange|Name1|Name2|Add1|Add2|Add3|City|State|County|PostCode|Country|##")
 
%>

Open in new window

0
Comment
Question by:learningnet
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 2000 total points
ID: 22984951
Try:
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.
0
 

Author Comment

by:learningnet
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?

thanks
kay
0
 
LVL 82

Expert Comment

by:hielo
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
0

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