Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2004, 08:11 PM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default JET Database Engine error w/ ActiveConnection line

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. Thanks for any posts and your time!

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"%>

<%
' *** 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 line is correct path. I have a total of 4 db's on the site and all of them are having the same problem. Sound like a file read/write problem? Its my only my guess.
 
Old May 3rd, 2004, 03:36 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

How does your connection string look like? To what kind of database are you connecting? How is security setup on your server and database?

Maybe this will help:
http://Imar.Spaanjaars.Com/QuickDocID.aspx?QUICKDOC=263

If it doesn't, can you post a bit more background info like database, connection string etc....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Mezzanine by Massive Attack (Track 9 from the album: Mezzanine) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft JET Database Engine error '80040e09' phuc2583 Classic ASP Basics 1 February 28th, 2008 06:45 PM
Database Error: Microsoft Jet Engine asters ASP.NET 1.0 and 1.1 Professional 2 April 3rd, 2007 09:33 AM
JET Database Engine Error amit_palrecha Classic ASP Databases 7 February 8th, 2007 03:50 AM
Microsoft JET Database Engine error '80040e10' froggzrevenge Classic ASP Databases 2 January 10th, 2005 12:44 AM
Microsoft JET Database Engine error '80040e10' shermttam Classic ASP Databases 9 December 10th, 2003 01:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.