Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 30th, 2005, 01:59 PM
gmcallis gmcallis is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 5 gmcallis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m 3 sec
Reputation Power: 0
Provider is not specified?

I recently installed Windows XP Professional 64-bit as I required IIS to test ASP content.

I have a file which works without problem on the hosting server, but when run on my local pc results in an error.

"Provider is not specified and there is no designated default provider"

I'm sure this isn't to do with my DNS less connection, but rather how IIS is setup?

The ASP code is

'Create Database Object.
Dim con
Dim strConn
Dim rs
Dim sqlstmt
'Connect to the database.
set con = Server.CreateObject ("ADODB.Connection")
strConn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("/db/sample.mdb")
con.mode = 3
con.open strConn

Any help or advice is much appreciated.

Cheers

Graham McAllister

Reply With Quote
  #2  
Old May 30th, 2005, 02:38 PM
lewy's Avatar
lewy lewy is offline
Alter Ego Wizard
Click here for more information.
 
Join Date: Jun 2004
Location: Edinburg Tx
Posts: 4,383 lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 1009 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 1 Day 23 h 29 m 43 sec
Reputation Power: 1488
Have you checked your pc and made sure that you have the msaccess driver?
If not try using the jet driver like shown below:
Code:
<%
 set conn=Server.CreateObject("ADODB.Connection")
 conn.Provider="Microsoft.Jet.OLEDB.4.0"
 conn.Open "c:/YourFolder/YourDatabase.mdb"
 %>
Comments on this post
gmcallis agrees: Very helpful tho not my solution, I think?
__________________
................... ASCII and ye shall receive ..................
Knowledge is the only resource on earth that multiplies when shared


Support the Shemzilla Project
Powered by C#

Reply With Quote
  #3  
Old May 30th, 2005, 07:16 PM
gmcallis gmcallis is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 5 gmcallis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m 3 sec
Reputation Power: 0
Thanks for your help, but yes, I did try using

strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & Server.MapPath("/db/sample.mdb")

and also your code, the result is the same "Provider cannot be found. It may not be properly installed."

I downloaded a file "windowsxp-kb829558-86-enu.exe" from microsoft.com, which I believe is the latest Jet, but
it errors on instal with "This KB829558 is for a different hardware platform."

When I use "Control Panel/Administrative Tools/Data Sources (ODBC)" I have the drivers for Excel, Access and dBase, but I can't
configure them. It errors with "The setup routines for Microsoft Access Driver (*.mdb) ODBC driver could not be found. Please reinstal
the driver."

I'm of the conclusion I either need an updated JET or new drivers to handle 64 bit.

Cheers

Reply With Quote
  #4  
Old May 31st, 2005, 02:46 AM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
Try www.microsoft.com/data to download database drivers.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #5  
Old May 31st, 2005, 08:00 AM
gmcallis gmcallis is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 5 gmcallis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m 3 sec
Reputation Power: 0
Unhappy

Thanks Doug but from what I can see from hours scouring the net the news isn't good.

I may be incorrect but the Access drivers are part of msjet40.dll?

According to http://support.microsoft.com the latest version of msjet40.dll is SP8 with
a version number 4.0.8015.0

The version I have that ships with Windows XP 64 bit is 4.00.9025.0, one would reasonably expect
this to be a later version to support 64 bit?

If I try to install SP8 I get the above error "This KB829558 is for a different hardware platform."

I'm no guru, but I'm of the thinking Microsoft have released this version which has a bug, but how
do you contact them for support of their own product without paying $250.00AUD?

If you, or anybody else, can add to this or set me straight I'd appreciate it.

Cheers

Reply With Quote
  #6  
Old May 31st, 2005, 08:15 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
I don't know the answer, but MS has been trying to dump Jet for a while now, perhaps it's not available in 64bit windows. I have no experience with 64bit XP myself, sorry.

Reply With Quote
  #7  
Old June 1st, 2005, 06:13 AM
gmcallis gmcallis is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 5 gmcallis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m 3 sec
Reputation Power: 0
Much appreciated anyway Doug. Cheers

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Provider is not specified?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT