Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vbscript Interpretation error 'ASP 0185 : 800200004'

Status
Not open for further replies.

Haraldo

Programmer
Jun 9, 2003
41
GB
This error message has stopped me in my tracks...

Vbscript Interpretation error 'ASP 0185 : 800200004'

/contentMS/updating.asp,line 16

Does anyone know how i could resolve this problem?

Here is the code in my updating.asp file:

<%@LANGUAGE=&quot;VBSCRIPT&quot;%>
<html>
<head>
<title>Updating...</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; />
</head>

<body>
<div align=&quot;left&quot;><font color=&quot;#000099&quot; size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;><%
Dim Text
Text = request.form(&quot;NewsText&quot;)
Dim thisURL
filename=Server.MapPath(&quot;../contentMS/NewsReader/input.txt&quot;)
Set fs = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set writefile = fs.OpenTextFile(filename, 2, True)
writefile.writeline(Text) // line 16
writefile.Close
set writefile=nothing
set fs=nothing

thisURL=&quot;response.redirect thisURL & &quot;
%>
Updating...</font></div>
</body>
</html>

The server that serves these page is running iASP (instant Asp) on Unix/linux machines. I am not having any trouble with the rest of the site.

Thank you for you time,
 
First thing I would do is check to make sure that &quot;text&quot; actually has a value > NULL

Steve Davis
hey.you@hahaha.com.au

Me? I can't even spell ASP!
 
Well i've tryed the response.write and it outputs the text variable above the previous error message. So the variable does hold a value. This script worked on my testing server (xp Pro) but now just doesn't work on the hosting site. I can't find any help in the search engines so i am wondering if anyone knows!

Thanks,

 
Try Server.CreateObject instead of just CreateObject.

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Do you know how hot your computer is running at home? I do
 
Make sure that your new IIS is set to &quot;allow parent paths&quot; which is something that caught me off guard when a site I developed was moved from IIS 5.0 to IIS 6.0.

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
I've tryed Server.CreateObject and checked the mappath but i'm still getting the same error any other ideas...

Thanks,
 
does the directory where you are writing the files have write permission for the account being used?
 
Thanks everyone for you help. Sjravee solved it. I can't believe i over looked the permissions. Thanks a lot,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top