Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ADODB error - please help?

Reply
Thread Tools

ADODB error - please help?

 
 
Mark
Guest
Posts: n/a
 
      12-03-2003
Hi - Can anyone please help with the error message below - server is XP
Pro, and the ASP code it is failing at is (set
MM_rsUser.ActiveConnection... as below):

<%
MM_valUsername=CStr(Request.Form("username"))
If MM_valUsername <> "" Then
MM_redirectLoginSuccess="fixit_ebase.asp"
MM_redirectLoginFailed="fixit_login.asp?failed=yes "
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = conFixitCon
MM_rsUser.Source = "SELECT username, userpassword,
email,edtick,adfix,apfix,delfix,sendap,amuser,view com,viewst,viewrev,vie
wstats,edstmts,qrydb,efstats,edclient,canview,brow sol FROM tblaccess
WHERE username='" & Replace(MM_valUsername,"'","''") &"' AND
userpassword='" & Replace(Request.Form("userpassword"),"'","''") & "'"
..
..


Please try the following:

Click the Refresh button, or try again later.

Open the pc2 home page, and then look for links to the information you
want.

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

------------------------------------------------------------
Technical Information (for support personnel)

Error Type:
ADODB.Recordset (0x800A0E7A)
Unknown runtime error
/sitefiles/login.asp, line 56

Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MyIE2; Alexa Toolbar;
..NET CLR 1.1.4322)

Page:
POST 46 bytes to /sitefiles/login.asp

POST Data:
username=admin&userpassword=admin&Submit=Login

Time:
02 December 2003, 19:26:22

More information:
Microsoft Support

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Aaron Bertrand [MVP]
Guest
Posts: n/a
 
      12-03-2003
See http://www.aspfaq.com/2340

Stop letting wysiwyg editors created such bloated code

<%
username = replace(Request.Form("username"), "'", "''")
password = Request.Form("userpassword"), "'", "''")
if username <> "" and password <> "" then
sql = "SELECT COUNT(*) FROM tblaccess " & _
" WHERE username='" & username & "'" & _
" AND userpassword='" & password & "'"
set rs = conFixitCon.execute(sql)
if not rs.eof then
response.redirect "fixit_ebase.asp"
else
response.redirect "fixit_login.asp?failed=yes"
end if
....
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/




"Mark" <> wrote in message
news:...
> Hi - Can anyone please help with the error message below - server is XP
> Pro, and the ASP code it is failing at is (set
> MM_rsUser.ActiveConnection... as below):
>
> <%
> MM_valUsername=CStr(Request.Form("username"))
> If MM_valUsername <> "" Then
> MM_redirectLoginSuccess="fixit_ebase.asp"
> MM_redirectLoginFailed="fixit_login.asp?failed=yes "
> MM_flag="ADODB.Recordset"
> set MM_rsUser = Server.CreateObject(MM_flag)
> MM_rsUser.ActiveConnection = conFixitCon
> MM_rsUser.Source = "SELECT username, userpassword,
> email,edtick,adfix,apfix,delfix,sendap,amuser,view com,viewst,viewrev,vie
> wstats,edstmts,qrydb,efstats,edclient,canview,brow sol FROM tblaccess
> WHERE username='" & Replace(MM_valUsername,"'","''") &"' AND
> userpassword='" & Replace(Request.Form("userpassword"),"'","''") & "'"
> .
> .
>
>
> Please try the following:
>
> Click the Refresh button, or try again later.
>
> Open the pc2 home page, and then look for links to the information you
> want.
>
> HTTP 500.100 - Internal Server Error - ASP error
> Internet Information Services
>
> ------------------------------------------------------------
> Technical Information (for support personnel)
>
> Error Type:
> ADODB.Recordset (0x800A0E7A)
> Unknown runtime error
> /sitefiles/login.asp, line 56
>
> Browser Type:
> Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MyIE2; Alexa Toolbar;
> NET CLR 1.1.4322)
>
> Page:
> POST 46 bytes to /sitefiles/login.asp
>
> POST Data:
> username=admin&userpassword=admin&Submit=Login
>
> Time:
> 02 December 2003, 19:26:22
>
> More information:
> Microsoft Support
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simple adodb calling stored procedures code please? rocketboy2000@shaw.ca ASP General 6 05-29-2008 06:58 PM
Error Type:0x80040E57 and ADODB.Command error '800a0d5d' ern edwar ASP General 0 11-15-2005 06:50 PM
ADODB.connection safety settings error Steven Baeten ASP .Net 1 05-09-2004 10:57 PM
ADODB.Connection error '800a0e7c' PJ ASP .Net 1 10-30-2003 01:27 PM
COMException Unspecified Error with ADODB and .NET remote users Jim Lacenski ASP .Net 1 10-18-2003 07:51 AM



Advertisments