Gossamer Forum
Home : General : Internet Technologies :

ActiveConnection errors

Quote Reply
ActiveConnection errors
Hello all!

I am getting the following error message and as I am certainly not a professional at this i need a Guru's help solving. Thank you mucho!

IE error message reads:

Microsoft JET Database Engine error '80004005'

Unspecified error

/user_login.asp, line 14



Here is line 14:

MM_rsUser.ActiveConnection = MM_connUsers_STRING




Now here is the relevent code for that page:

<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/connUsers.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("username"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization=""
MM_redirectLoginSuccess="begin_search.asp"
MM_redirectLoginFailed="login_fail.asp"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_connUsers_STRING
MM_rsUser.Source = "SELECT Username, Password"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM tblUsers WHERE Username='" & MM_valUsername &"' AND Password='" & CStr(Request.Form("password")) & "'"
MM_rsUser.CursorType = 0
MM_rsUser.CursorLocation = 2
MM_rsUser.LockType = 3
MM_rsUser.Open
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
strIpAddress = Request.ServerVariables("REMOTE_ADDR")
strUserAgent = Request.ServerVariables("HTTP_USER_AGENT")
SQL = "UPDATE tblUsers SET IpAddress = '" & strIpAddress & "', UserAgent = '" & strUserAgent & "' WHERE Username = '" & MM_valUsername & "'"
MM_connUsers_STRING.Execute(SQL)
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>




The <!--#include file="Connections/connUsers.asp" --> line is correct path. I have a total of 4 db's on the site and all of them are having the same problem. Access database support is enabled though the host. This may be a simple task for some of you but I am seriously geek-challenged :)

Subject Author Views Date
Post ActiveConnection errors jdavis7453 3186 Apr 28, 2004, 7:41 PM