Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - HTTP 500 error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HTTP 500 error

 Post Reply Post Reply
Author
Sammy View Drop Down
Newbie
Newbie


Joined: 18 December 2003
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sammy Quote  Post ReplyReply Direct Link To This Post Topic: HTTP 500 error
    Posted: 18 December 2003 at 2:12pm
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

I have 3 pages:
First page is called getpoint.asp.
All this page does is when click, invokes a second page called showForms.asp to open in a popup window.
Once this form is completed and a submit button is clicked, the last page called insert.asp is invoked to process the form and submit the data to the database.
So far, I have run into a snag.
I keep getting this error:

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

I don't know what it is or how to fix it.
Can someone please take a look at these codes.
Please bear with me for am including all 3 because they are short and I honestly don't know which of them is causing me grief.

Please forgive me for doing this.

getpoint.asp
------------
<script language="javascript">
var loc = "showform.asp?LAT=" + "<%=Request.Form("lat")%>" + "&LON=" + "<%=Request.Form("lon")%>";
win = window.open(loc, "ShowFormWin", "width=610,height=330,dependent=yes,resizable=yes");
win.focus();
</script>

showForm.asp
------------
<html>
<head>
<title> Spills Report Log </title>
</head>
<body bgcolor="silver">
<form Name="myform" method="post" action="insert.asp">
<table><tr><td>
<input type="hidden" name="rpt_lat" value=="<%=Request.Querystring("lat")%>">
<input type="hidden" name="rpt_lon" value=="<%=Request.Querystring("lon")%>">
</td></tr>
<tr>
<td>
Spills Location:
</td>
<td>
<input type="text" maxlength="30" name="rpt_location" size="33">
</td><td>
City:
</td>
<td>
<input type="text" maxlength="30" name="rpt_City" size="33">
</td
</tr>
<tr>
<td>
Basin:
</td>
<td>
<input type="text" maxlength="30" name="rpt_Basin" size="33">
</td>
<td>
Date Found:
</td>
<td>
<input type="text" maxlength="30" name="rpt_DteFound" size="33">
</td>
</tr>
<tr>
<td>
District:
</td>
<td>
<input type="text" maxlength="30" name="rpt_District" size="33">
</td>
<td>
Commision:
</td>
<td>
<input type="text" maxlength="30" name="rpt_Comm" size="33">
</td>
</tr>
<tr>
<td>
Type Of Spill:
</td>
<td>
<input type="text" maxlength="30" name="rpt_type_of_spill" size="33">
</td>
<td>
Cause Type:
</td>
<td>
<input type="text" maxlength="30" name="rpt_Cause_Type" size="33">
</td>
</tr>
<tr>
<td>
Receiving:
</td>
<td>
<input type="text" maxlength="30" name="rpt_Receiving" size="33">
</td>
<td>
Date Repaired:
</td>
<td>
<input type="text" maxlength="30" name="rpt_DteRepaired" size="33">
</td>
</tr>
<tr>
<td>
Total Gallon:
</td>
<td>
<input type="text" maxlength="30" name="rpt_tlGallon" size="33">
</td>
</tr>
</table>
<center>
<input type="Submit" name="Submit" Value="OK">
<input type="Button" name="CancelButton" Value="Cancel" onClick="window.close()">
</center>
</form>
</body>
</html>

insert.asp
----------
<%
Set myConn=Server.CreateObject("ADODB.Connection")
myConn.open("Spills")
SQLstr="INSERT INTO spills_geocd1 " & _
"( lat,lon,spills_loca,cause_type,commission, total_gall, " & _
" date_repai,type_of_sp,receiving_,basin1,district,c
ity,date_found) " & _
"values( " & _
" '" & Request.Form("rpt_lat") & "', '" & Request.Form("rpt_lon") & "','" & Request.Form("rpt_location") & "', " &_
" '" & Request.Form("rpt_Cause_Type") & "', '" & Request.Form("rpt_Comm") & "'," & _
" '" & Request.Form("rpt_tlGallon") & "', " & _
" '" & Request.Form("rpt_DteRepaired") & "', " & _
" '" & Request.Form("rpt_type_of_spill") & "', " & _
" '" & Request.Form("rpt_Receiving") & "', " & _
" '" & Request.Form("rpt_Basin") & "', " & _
" '" & Request.Form("rpt_District") & "', " & _
" '" & Request.Form("rpt_City") & "'," & _
" '" & Request.Form("rpt_DteFound") & "')"

myConn.Execute (SQLstr)
%>
<script language="javascript">
alert("Point added successfully! Reload the map to see the changes you made.");
window.close();
</script>
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 18 December 2003 at 2:16pm
Turn off Friendlt HTTP error messages - http://webwiz.net/asp/faq/friendly_HTTP_error_messages. asp then repost the error.
Back to Top
Sammy View Drop Down
Newbie
Newbie


Joined: 18 December 2003
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sammy Quote  Post ReplyReply Direct Link To This Post Posted: 18 December 2003 at 2:55pm
I unchecked it but I am still getting same http:500.10 error message
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 18 December 2003 at 11:44pm

Typically, you see this error when you call a function that doesn't exist (run time), have unbalanced parentheses - "(" but not a ")" (loadtime)- or divide by 0 (runtime).

Sprinkle some responsewrites in the asp code to sectionalize the fault - e.g. Response.write "1 <br>"  Response.write "2 <BR>" ... particularly at the begining, before each major activity (SQL execution), and at the end.


Lead me not into temptation... I know the short cut, follow me.
Back to Top
Sammy View Drop Down
Newbie
Newbie


Joined: 18 December 2003
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sammy Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2003 at 6:26am

The issue has been resolved.

The problem was with the insert statement where a couple of fields were mis-spelled.

Actually, the dba renamed some fields and I didn't have enough sense to verify those first.

In any case, I thank you all for the assistance.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.