ASP W2K question
#1
Scooby Regular
Thread Starter
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes
on
0 Posts
Help. I am a thicko mac user. Fact.
I am trying to develop something on my PC of which I am not a complete numpty with.
I have W2K and just installed IIS.
IIS is working and serving the pages.
I have some ASP code that works on one of our live webservers but not on my local machine.
The error I get is this;
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 0x5f0 Thread 0x694 DBC 0x13b4194 Jet'.
/top.asp, line 5
I have just upgraded my Jet thingy (whatever the hell that is ) from a updater from a PC savvy colleague but I still get this message.
The ASP *should* handle the connections itself so I am under the impression I don't need to set up any DSNs manually, I have had this working before but have since reinstalled the OS etc.
Is there something else I am probably missing?
Why is it talking about the registry?
Any helpful comments?
I am trying to develop something on my PC of which I am not a complete numpty with.
I have W2K and just installed IIS.
IIS is working and serving the pages.
I have some ASP code that works on one of our live webservers but not on my local machine.
The error I get is this;
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 0x5f0 Thread 0x694 DBC 0x13b4194 Jet'.
/top.asp, line 5
I have just upgraded my Jet thingy (whatever the hell that is ) from a updater from a PC savvy colleague but I still get this message.
The ASP *should* handle the connections itself so I am under the impression I don't need to set up any DSNs manually, I have had this working before but have since reinstalled the OS etc.
Is there something else I am probably missing?
Why is it talking about the registry?
Any helpful comments?
#2
have you replicated the file / system DSN from the original machine onto the new machine?
Can you also post up line 5 of top.asp - that would give a clue as to what is happening.
[Edited by SJ_Skyline - 1/30/2004 11:26:32 AM]
Can you also post up line 5 of top.asp - that would give a clue as to what is happening.
[Edited by SJ_Skyline - 1/30/2004 11:26:32 AM]
#3
Scooby Regular
Thread Starter
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes
on
0 Posts
I believe I do not need to manually set up a DSN if the code is written in such as way as to do it itself.
It is failing here on the line 'conn.ActiveConnection = '
<%
set conn = Server.CreateObject("ADODB.Recordset")
conn.ActiveConnection = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\inetpub\mysite\data\mydb.mdb"
conn.Source = "SELECT * FROM tbl ORDER BY name ASC"
conn.CursorType = 0
conn.CursorLocation = 2
conn.LockType = 3
conn.Open()
%>
It is failing here on the line 'conn.ActiveConnection = '
<%
set conn = Server.CreateObject("ADODB.Recordset")
conn.ActiveConnection = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\inetpub\mysite\data\mydb.mdb"
conn.Source = "SELECT * FROM tbl ORDER BY name ASC"
conn.CursorType = 0
conn.CursorLocation = 2
conn.LockType = 3
conn.Open()
%>
#5
Scooby Regular
Thread Starter
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes
on
0 Posts
Bloody hell. I hate to admit it but I had missed out the wwwroot bit from the full path.
<slopes off with tail between legs>
Thanks guys, it's always something blindly obvious
<slopes off with tail between legs>
Thanks guys, it's always something blindly obvious
#6
Rich
Just a quick pointer that you may be aware of.... remember to keep any access databases out of the docroot that gets served by IIS, as anyone )if they knew the filename could download the db.
You could for instance put it in c:\inetpub\data. As long as IUSER_YourMachine as probably Change NTFS permissions to the folder/file then shoud still work.
Ids
Just a quick pointer that you may be aware of.... remember to keep any access databases out of the docroot that gets served by IIS, as anyone )if they knew the filename could download the db.
You could for instance put it in c:\inetpub\data. As long as IUSER_YourMachine as probably Change NTFS permissions to the folder/file then shoud still work.
Ids
Thread
Thread Starter
Forum
Replies
Last Post
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM