Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ERROR '80040e4d'

Status
Not open for further replies.

OSU

Programmer
Sep 25, 2001
10
NO

Can anybody help me solve this problem..
The "Error message" are..

Provider error '80040e4d'

Authentication failed.

/Project1_Local/MPSkv/datates.ASP, line 25

************************************************
**Code**
<%@ Language=VBScript %>
<SCRIPT id=DebugDirectives runat=server language=javascript>
// Set these to true to enable debugging or tracing
@set @debug=false
@set @trace=false
</SCRIPT>

<% ' VI 6.0 Scripting Object Model Enabled %>
<!--#include file=&quot;../_ScriptLibrary/pm.asp&quot;-->
<% if StartPageProcessing() Then Response.End() %>
<FORM name=thisForm METHOD=post>
<HTML>
<HEAD>


<%
KundeNr = Request.Form(&quot;KundeNr&quot;)
Passord = Request.Form(&quot;Passord&quot;)
'Get KundeNr and passord from previous page

SQL = &quot;SELECT * FROM Purring Where KundeNr='&quot; & KundeNr & &quot;'&quot;
set adoConn = Server.CreateObject (&quot;ADODB.Connection&quot;)
set adoRS = Server.CreateObject (&quot;ADODB.Recordset&quot;)
dbPath = Server.MapPath(&quot;MPS2000-Da.mdb&quot;)
adoConn.Open &quot;PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=; &quot; & dbPath
adoRS.Open SQL, adoConn
' OPen a DSN less connection to an access database and get the KundeNr and passord for the record where KundeNr=KundeNr

If adoRS.EOF Then
'The username doesn't exist, do an error.
Response.Write &quot;Kundenr Doesn't Exist!&quot;
Else
If Trim(Passord) = Trim(adoRS(&quot;Passord&quot;)) Then
'If the passwords match
Session(&quot;LoggedIn&quot;)=&quot;TRUE&quot;
'Set a session variable to true
%>

<SCRIPT LANGUAGE=VBSCRIPT>
window.navigate &quot;kva.asp&quot;
</SCRIPT>

<%
'Forward user to next page
Else
'Passwords don't match
Response.Write &quot;Passord is incorrect&quot;
End If
End IF
set adoRS = Nothing
set adoConn = Nothing
%>

<META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
</HEAD>
<BODY>
<P>
<!--METADATA TYPE=&quot;DesignerControl&quot; startspan
<OBJECT classid=&quot;clsid:9CF5D7C2-EC10-11D0-9862-0000F8027CA0&quot; id=Recordset1 style=&quot;LEFT: 0px; TOP: 0px&quot;>
<PARAM NAME=&quot;ExtentX&quot; VALUE=&quot;12197&quot;>
<PARAM NAME=&quot;ExtentY&quot; VALUE=&quot;2090&quot;>
<PARAM NAME=&quot;State&quot; VALUE=&quot;(TCConn=\qConnection2\q,TCDBObject=\qTables\q,TCDBObjectName=\qPurring\q,TCControlID_Unmatched=\qRecordset1\q,TCPPConn=\qConnection2\q,RCDBObject=\qRCDBObject\q,TCPPDBObject=\qTables\q,TCPPDBObjectName=\qPurring\q,TCCursorType=\q3\s-\sStatic\q,TCCursorLocation=\q3\s-\sUse\sclient-side\scursors\q,TCLockType=\q3\s-\sOptimistic\q,TCCacheSize_Unmatched=\q10\q,TCCommTimeout_Unmatched=\q10\q,CCPrepared=0,CCAllRecords=1,TCNRecords_Unmatched=\q10\q,TCODBCSyntax_Unmatched=\q\q,TCHTargetPlatform=\q\q,TCHTargetBrowser_Unmatched=\qServer\s(ASP)\q,TCTargetPlatform=\qInherit\sfrom\spage\q,RCCache=\qRCBookPage\q,CCOpen=1,GCParameters=(Rows=0))&quot;>
<PARAM NAME=&quot;LocalPath&quot; VALUE=&quot;../&quot;></OBJECT>
-->
<!--#INCLUDE FILE=&quot;../_ScriptLibrary/Recordset.ASP&quot;-->
<SCRIPT LANGUAGE=&quot;JavaScript&quot; RUNAT=&quot;server&quot;>
function _initRecordset1()
{
var DBConn = Server.CreateObject('ADODB.Connection');
DBConn.ConnectionTimeout = Application('Connection2_ConnectionTimeout');
DBConn.CommandTimeout = Application('Connection2_CommandTimeout');
DBConn.CursorLocation = Application('Connection2_CursorLocation');
DBConn.Open(Application('Connection2_ConnectionString'), Application('Connection2_RuntimeUserName'), Application('Connection2_RuntimePassword'));
var cmdTmp = Server.CreateObject('ADODB.Command');
var rsTmp = Server.CreateObject('ADODB.Recordset');
cmdTmp.ActiveConnection = DBConn;
rsTmp.Source = cmdTmp;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top