Hjælp til NewsScript, fejlmelding
Jeg har dowloaded et NewsScript på http://www.wirednow.netJeg kan bare ikke forstå at jeg ikke kan få det til at funke.
Er det muligt at få lidt hjælp :
Fejlmelding:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x62c Thread 0x71c DBC 0xe92c024 Jet'.
/news/Default.asp, line 18
--------------------------------------
Paster her en del af Default.asp
Har sat kommenta i linje 18:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/NewsDataBase.asp" -->
<%
if Request.form("remember") = "1" then
Response.cookies("VarUsername") = Request.form("username")
end if
' *** 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="admin.asp"
MM_redirectLoginFailed="default.asp?p=badpassword"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
<!-- linje nr. 18 --> MM_rsUser.ActiveConnection = MM_NewsDataBase_STRING
MM_rsUser.Source = "SELECT USER, PASS"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM tbluser WHERE USER='" & MM_valUsername &"' AND PASS='" & 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