Everything as per instructions in the read me have been followed, it would appear everything else is in order.......but im getting the following error when attempting to access the page.......
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x7a0 Thread 0x978 DBC 0x14fce2c Jet'.
/code/iplog.asp, line 6
I would guess there is something wrong in the iplog.asp file.........this is whats there,
<%
Dim ipoConn, ipsConnString
Set ipsoConn = Server.CreateObject("ADODB.Connection")
strPath = "c:\statuspages\site.mdb"
ConnString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" + strPath
ipsoConn.open(ConnString)
%>
<%
if (Request.ServerVariables("HTTP_X_FORWARDED_FOR") <> "") then
userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
else
userip = Request.ServerVariables("REMOTE_ADDR")
end if
if session("session") <> "2" then
Set MyBrow=Server.CreateObject("MSWC.BrowserType")
Session("session") = "2"
session("datum") = date()
session("tijd") = time()
toevoegsql = "insert into stats (ip, datum, windows, webbrowser, version, browser, tijd, page, hits) values('" & userip & "','" & Date() & "','" & MyBrow.platform & "','" & MyBrow.browser & "','" & MyBrow.version & "','" & request.ServerVariables("http_user_agent") & "','" & time() & "','Mental','1')"
ipsoconn.execute(toevoegsql)
else
sql = "select * from stats where ip = '" & userip & "' order by datum desc, tijd desc;"
set hitcount = ipsoconn.execute(sql)
'response.write sql
hits = hitcount("hits")
sql = "update stats set hits = " & hits + 1 & " where datum = #" & session("datum") & "# and tijd = #" & session("tijd") & "#;"
'response.write sql
ipsoconn.execute(sql)
end if
%>
Anyone shed any light on the problem here please?
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x7a0 Thread 0x978 DBC 0x14fce2c Jet'.
/code/iplog.asp, line 6
I would guess there is something wrong in the iplog.asp file.........this is whats there,
<%
Dim ipoConn, ipsConnString
Set ipsoConn = Server.CreateObject("ADODB.Connection")
strPath = "c:\statuspages\site.mdb"
ConnString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" + strPath
ipsoConn.open(ConnString)
%>
<%
if (Request.ServerVariables("HTTP_X_FORWARDED_FOR") <> "") then
userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
else
userip = Request.ServerVariables("REMOTE_ADDR")
end if
if session("session") <> "2" then
Set MyBrow=Server.CreateObject("MSWC.BrowserType")
Session("session") = "2"
session("datum") = date()
session("tijd") = time()
toevoegsql = "insert into stats (ip, datum, windows, webbrowser, version, browser, tijd, page, hits) values('" & userip & "','" & Date() & "','" & MyBrow.platform & "','" & MyBrow.browser & "','" & MyBrow.version & "','" & request.ServerVariables("http_user_agent") & "','" & time() & "','Mental','1')"
ipsoconn.execute(toevoegsql)
else
sql = "select * from stats where ip = '" & userip & "' order by datum desc, tijd desc;"
set hitcount = ipsoconn.execute(sql)
'response.write sql
hits = hitcount("hits")
sql = "update stats set hits = " & hits + 1 & " where datum = #" & session("datum") & "# and tijd = #" & session("tijd") & "#;"
'response.write sql
ipsoconn.execute(sql)
end if
%>
Anyone shed any light on the problem here please?
