Solved

ASP can't find the 500 error

Posted on 2011-09-20
3
314 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
Comment Utility
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
Comment Utility
And for a MAC?
0
 
LVL 28

Expert Comment

by:sammySeltzer
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now