IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old June 29th, 2005, 06:08 AM
DKY's Avatar
DKY DKY is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2003
Posts: 744 DKY User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 17 h 59 m 29 sec
Reputation Power: 6
Problems with ODBC on XP Prof with IIS and ASP over network share

Problems with ODBC on XP Prof with IIS and ASP over network share.

When I originally set up my IIS server yesterday on XP professional and I tried to set up my home directory over a network share it wouldnt let me do it with ISUR_COMPUTERNAME because it said something about dual usage. Whatever it was saying it gave me the impression that I couldnt be logged on as 'user' with mapped network drives or something and still access the share with ISUR_COMPUTERNAME. So I used my username instead to connect to the network share over IIS. Everything seemed to work okay until I tried to set up the ODBC to access my MS Access database with asp. I went into the 'Data Sources (ODBC)' to set it up. I selected the 'System DSN' tab and clicked the add button. I then selected the 'Microsoft Access Driver (*.mdb)' named the driver, selected it on the share and thought everything was fine until I get this error when I try and call up the asp page.
Quote:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
/hotlines/PDC_Hotline.asp, line 9

So,.....I do a little googling to find this thread
http://support.microsoft.com/defaul...&NoWebContent=1
Which says that it might be a permissions issue, so I double check everything and my username and ISUR_COMPUTERNAME are both set up as admins on both machines. I then go to the security tab on the access file itself but now what do I do? Has anyone ever come accross this before?

Reply With Quote
  #2  
Old June 29th, 2005, 08:13 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 33 m 53 sec
Reputation Power: 688
Try the asp forum, it sounds like a problem with your coding.

Like what kind of path is 'unknown'? That should be a clue.
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old June 30th, 2005, 05:26 PM
DKY's Avatar
DKY DKY is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2003
Posts: 744 DKY User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 17 h 59 m 29 sec
Reputation Power: 6
see, the thing is when I copy the access .mdb file onto my c drive and then change the path in odbc manager it works fine. That's why I figured it was an odbc manager vs. network share issue and I don't know where to go with that. LOL

Reply With Quote
  #4  
Old June 30th, 2005, 05:52 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 33 m 53 sec
Reputation Power: 688
What's the code that opens the connection to your database? (or that tries to open your database anyway)?

Reply With Quote
  #5  
Old June 30th, 2005, 09:57 PM
DKY's Avatar
DKY DKY is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2003
Posts: 744 DKY User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 17 h 59 m 29 sec
Reputation Power: 6
Quote:
Originally Posted by Doug G
What's the code that opens the connection to your database? (or that tries to open your database anyway)?


Code:
'connect to the database
Set CTDB=Server.CreateObject("ADODB.Connection")
CTDB.ConnectionTimeout=60
CTDB.Open "DSN=international_hotlines"

Reply With Quote
  #6  
Old July 1st, 2005, 11:23 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 33 m 53 sec
Reputation Power: 688
The code you listed is using a DSN that must be created on the web server, is there a DSN named "international_hotlines" on the server that is known to work with the IIS user account?

Reply With Quote
  #7  
Old July 2nd, 2005, 10:23 AM
DKY's Avatar
DKY DKY is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2003
Posts: 744 DKY User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 17 h 59 m 29 sec
Reputation Power: 6
Quote:
Originally Posted by Doug G
The code you listed is using a DSN that must be created on the web server, is there a DSN named "international_hotlines" on the server that is known to work with the IIS user account?


attached is a picture of my odbc. For now I have it running perfectly fine on my local disk C:/ drive. But what if something happens to my c drive, I always used it (in win 200 prof) on a network share and had no problems. Now I'm in xp prof and can't map it to the network share, the second I do, I have problems.
Attached Images
File Type: jpg odbc.JPG (54.7 KB, 287 views)

Reply With Quote
  #8  
Old July 5th, 2005, 05:00 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 33 m 53 sec
Reputation Power: 688
I think your original comments about it being a permissions problem is probably correct. It's possible you need to add the IWAM_ user account to the remote computer as well. There is some MS KB article discussing the useage of IUSR and IWAM user accounts by IIS.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Problems with ODBC on XP Prof with IIS and ASP over network share


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 5 hosted by Hostway