Solved

ASP can't find the 500 error

Posted on 2011-09-20
3
319 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

810 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