ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

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 Dev Shed Forums Sponsor:
  #1  
Old September 5th, 2003, 09:32 AM
jpruizs jpruizs is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 jpruizs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to jpruizs Send a message via Yahoo to jpruizs
Data source name not found and no default driver specified

Hi

We had a web site that works in windows NT very good with a DB in Access. Our clients migrate to Win 2000 and now the connection to the DB doesn't work,...the error is this:

Error: Access is Denied.
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

/directory/progs/utils.inc, line 17

The code is this

Sub ConectarBd(NomDSN)
Connect_String = "DSN=lmsfamilia;"
db.Open Connect_String
End Sub

What could it be?

Thanks
JP

Reply With Quote
  #2  
Old September 5th, 2003, 09:49 AM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Make sure your client has a DSN named lmsfamilia on his machine.

To check that, simply go to :

Start-->Programs-->Administrative Tools-->Data Source(ODBC)
then click the System DSN tab and *look* if its there...

If not, then create it!

Hope this helps!
Sincerely

Vlince

Reply With Quote
  #3  
Old September 5th, 2003, 09:56 AM
jpruizs jpruizs is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 jpruizs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to jpruizs Send a message via Yahoo to jpruizs
I've already done that DSN

Hi!

I'm sure the DSN is created in Data Source(ODBC)


I'm really confused...two days with this error....the DSN is created...the users IWAM_ and IUSR_ have the rigth permision to the folder....so ...mh?


Help please


Thanks

JP

Reply With Quote
  #4  
Old September 5th, 2003, 10:16 AM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
OK then there is NOTHING *I* can do from here...in Montreal!

You'll need to DEBUG

Start from the beginning,

Create a simple .asp page that does this:
--------------------------------------------------
<html>
<body>

<%Response.Write Now()%>

</body>
</html>
--------------------------------------------------


then move up one leve...

Create a *second* .asp page that *tries* to connect to your database.
Use an OLEDB connection instead of a DSN to connect to your Access database
Look here: http://www.able-consulting.com/ADO_Conn.htm

Now you do NOT have much choice to go step by step in order to identify the problem

I wish I could help you more...honestly!

If the OLEDB approach doesn't work then try creating a *NEW* DSN following the steps in the wizard.

Hope this helps!
Sincerely

Vlince

Reply With Quote
  #5  
Old September 5th, 2003, 11:16 AM
Doug G Doug G is online now
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,824 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 19 h 27 m 21 sec
Reputation Power: 765
Double-check your DSN. If you have a typo in the path to the .mdb file you can get this error.

If the .mdb file is in some location outside of your web, make sure the IIS user account has permissions to the .mdb file.

You can download and install newer MDAC packages from MS at www.microsoft.com/data You need to download Jet (Access) drivers separately.

It is remotely possible there is a registry permissions problem where IIS can't get to the DSN registry entries.

Reply With Quote
  #6  
Old September 6th, 2003, 06:50 AM
WebHosts WebHosts is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 2 WebHosts User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try removing "DSN=" from the connection string... we've often found that that is the cause of problems even though it shouldn't be....eg

Code:
Connect_String = "lmsfamilia"


(Plus remove the SemiColon)

Also.. make absolutely sure it's a system DSN

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Data source name not found and no default driver 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 3 hosted by Hostway