Forum Moderators: open
Error Type:
Microsoft JET Database Engine (0x80004005)
Operation must use an updateable query.
/bg/Newsentrya.asp, line 69 For Each File In Uploader.Files.Items
File.SaveToDisk f
if fpath="--" then
fpath=fpath & "," & "\NewsAttachments\" & Number & File.FileName
else
fPath= "\NewsAttachments\" & Number & "\" & File.FileName
end if
next
end if
sql="insert into news_details(numNumber,dtNewsDate,txtHeadline,txtNews,dtStartDate,dtEndDate,picture)
values('"&number&"',date(),'"&txtHeadline&"','"&txtnewstext&"','"&txtkdate&"','"&txtedate&"','"&fpath&"')"
(this is line 69!) con.Execute sql
Response.Write "<font color=red face=safon size=4><b>Data is Succesfully added</font>"
Response.Write "<font color=red face=safon size=4><b>Data is Succesfully added</font>"
and
POST Data:
error '80020009'
Exception occurred.
/iisHelp/common/500-100.asp, line 223
If strMethod = "POST" Then
Response.Write Request.TotalBytes & " bytes to "
End If
Response.Write Request.ServerVariables("SCRIPT_NAME")
lngPos = InStr(Request.QueryString, "¦")
If lngPos > 1 Then
Response.Write "?" & Server.HTMLEncode(Left(Request.QueryString, (lngPos - 1)))
End If
Response.Write "</li>"
If strMethod = "POST" Then
Response.Write "<p><li>POST Data:<br>"
If Request.TotalBytes > lngMaxFormBytes Then
(this is line 223!)Response.Write.Server.HTMLEncode(Left(Request.Form, lngMaxFormBytes)) & " . . ."
Else
Response.Write Server.HTMLEncode(Request.Form)
End If
Response.Write "</li>"
End If
But the main problem is that on the live server - Win Server 2003 and IIS ver 6.0 and form sometimes works sometimes don't. Pls, help me to solve this problem.
[edited by: phranque at 6:47 am (utc) on July 20, 2008]
[edit reason] fix line width [/edit]
have you had any luck solving this problem?