Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP can't find the 500 error

Posted on 2011-09-20
3
Medium Priority
?
344 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
sammySeltzer earned 2000 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 29

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

Vim Reference Guide

Vim is a powerful text editor favored by many sysadmins and developers - here are some commands that you'll want to keep in your back pocket!

Question has a verified solution.

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

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.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
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…

722 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