Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

ASP can't find the 500 error

I am having a problem on an ASP page I  created . 50% of the people are able to submit the form, another 50% is getting a 500 page error.
But my error is not giving me any detailed information. It's giving me a line number 0 .
I tried putting in a response.write to track how far along they are getting, but nothing is showing up.
<%
if request.form("Login") <> "" then 
%>
<%
response.write("Beep 1<br>")
Dim Command1__username 
Command1__username  = request.form("login")
session("username") =Command1__username  


Dim Command1__password 
Command1__password  = request.form("password")
ipadd = request.form("IpAddress")


set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_tower_STRING
Command1.CommandText = "Csm2_VerifyLogin"
Command1.CommandType = 4
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Parameters.Append Command1.CreateParameter("@username", 200, 1,100,Command1__username )
Command1.Parameters.Append Command1.CreateParameter("@password", 200, 1,100,Command1__password )
Command1.Parameters.Append Command1.CreateParameter("@ipaddress", 200, 1,50, ipadd )
set accountInfo = Command1.Execute
accountInfo_numRows = 0
response.write("Beep 2<br>")


%>
<%
if accountInfo.Fields.Item("AgentID").Value  = "0" then 
invalid = "true"
else 
Session("towid")  =  accountInfo.Fields.Item("AgentID").Value
session("towtype") = accountInfo.Fields.Item("TowerType").Value 'auction/tower
session("prepay") = accountInfo.Fields.Item("Prepay").Value 'true/false
Session.Timeout=60
response.write("Beep 3<br>")

'response.redirect("dashboard.asp")
end if

end if ' end script to check login
%>

Open in new window

0
rivkamak
Asked:
rivkamak
  • 2
1 Solution
 
sammySeltzerCommented:
Did you try fixing your browser to get more specific error message?

Open your browser,
Click Internet Options
Click the Advanced tab
Scroll till you see "show http friendly error messages"
Uncheck the box
Apply'
OK,
Close it and run your code again.

What did you get now?
0
 
rivkamakAuthor Commented:
And for a MAC?
0
 
sammySeltzerCommented:
what do you mean?

Did you try above?

Trying above doesn't solve the problem - it shows more specifically what could be wrong.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now