Solved

ASP can't find the 500 error

Posted on 2011-09-20
3
323 Views
Last Modified: 2012-05-12
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
Comment
Question by:rivkamak
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
sammySeltzer earned 500 total points
ID: 36567708
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
 

Author Comment

by:rivkamak
ID: 36569682
And for a MAC?
0
 
LVL 28

Expert Comment

by:sammySeltzer
ID: 36570126
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about why website design really matters in today's demanding market.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question