Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

ASP W2K question

Thread Tools
 
Search this Thread
 
Old 30 January 2004, 10:46 AM
  #1  
RichB
Scooby Regular
Thread Starter
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Question

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?

Old 30 January 2004, 11:25 AM
  #2  
SJ_Skyline
Scooby Senior
 
SJ_Skyline's Avatar
 
Join Date: Apr 2002
Location: Limbo
Posts: 21,922
Likes: 0
Received 1 Like on 1 Post
Question

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]
Old 30 January 2004, 11:31 AM
  #3  
RichB
Scooby Regular
Thread Starter
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Post

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()
%>
Old 30 January 2004, 11:43 AM
  #4  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Post

From google...

http://www.attention-to-details.com/...or-process.asp
Old 30 January 2004, 11:57 AM
  #5  
RichB
Scooby Regular
Thread Starter
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Post

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
Old 30 January 2004, 08:39 PM
  #6  
ids
Scooby Regular
 
ids's Avatar
 
Join Date: May 1999
Posts: 424
Likes: 0
Received 0 Likes on 0 Posts
Post

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
Old 31 January 2004, 03:00 PM
  #7  
RichB
Scooby Regular
Thread Starter
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Wink

thanks for the advice!
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Darrell@Scoobyworx
Trader Announcements
26
30 January 2024 01:27 PM
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
slimwiltaz
General Technical
20
09 October 2015 07:40 PM
IanG1983
Wheels, Tyres & Brakes
2
06 October 2015 03:08 PM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM



Quick Reply: ASP W2K question



All times are GMT +1. The time now is 06:46 AM.