Link to home
Start Free TrialLog in
Avatar of learningnet
learningnet

asked on

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?

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

ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of learningnet
learningnet

ASKER

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