Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 8th, 2003, 04:38 PM
Ste Collins Ste Collins is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Knowsley / Liverpool
Posts: 15 Ste Collins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
IIS configuration for writing to database

anyone know why I get the following error when trying to write to an Access database using ASP. My computer is WinXp running IIS5.0.
IIS is set up with read/write everything. I was told that my computer (server) also needed write access?? Make sense?

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.

/wwwroot/KLP Curriculum Site/resource_addtodatabase.asp, line
35


Reply With Quote
  #2  
Old July 8th, 2003, 05:23 PM
EiSa EiSa is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Norway
Posts: 184 EiSa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 6
You need to set the read/write option for the database.

You do it here:
Control Panel -> Administrative tools -> Internet Information Services -> Browse to you find you database -> Rightclick and choose All tasks -> Guidelines for "something"

Reply With Quote
  #3  
Old July 8th, 2003, 05:35 PM
Ste Collins Ste Collins is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Knowsley / Liverpool
Posts: 15 Ste Collins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yeah, Im sure I did that...tried everything that I am familiar with. Its late now, my brain is melting Will try on the morrow.

Thanks for rollover info on other thread also.

Reply With Quote
  #4  
Old July 8th, 2003, 08:02 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Permissions are not handled through IIS. They are handled by the OS. So, open up windows explorer, find the DB file, right click, ensure that the file's attributes are not set to read only. Then click the Security tab. Assign the IUSR_YourMachineName user full permissions.

IUSR_YourMachineName is the username which IIS operates as. Keep this in mind for any future problems, as you'll often need to setup it's permission on folders/files, esp. if you do any file uploading projects.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #5  
Old July 9th, 2003, 03:26 AM
Ste Collins Ste Collins is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Knowsley / Liverpool
Posts: 15 Ste Collins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

I was aware that the OS needed write permissions but wasnt sure how to do this. So, its in Security from properties of file. Thanks...I will test this tonight.

Reply With Quote
  #6  
Old July 9th, 2003, 03:43 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Yup. Also, you can apply your secuity settings to entire folders using the same method.

Reply With Quote
  #7  
Old July 9th, 2003, 02:23 PM
Ste Collins Ste Collins is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Knowsley / Liverpool
Posts: 15 Ste Collins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
OK. what am I doing wrong here, properties of database (right click) only give me General & Summary options, no Security option. Its not read only aswell. I tested this on Win2000 Pro and it was ok but this computer is XP Pro and I dont get the option...

Reply With Quote
  #8  
Old July 12th, 2003, 08:41 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
To turn Simple File Sharing on or off in Windows XP Professional:
Double-click My Computer on the desktop.
On the Tools menu, click Folder Options.
Click the View tab, and then click to select the Use Simple File Sharing (Recommended) check box to enable Simple File Sharing (click to clear this check box to disable this feature).

http://support.microsoft.com/?kbid=304040

Reply With Quote
  #9  
Old July 20th, 2003, 08:15 AM
Ste Collins Ste Collins is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Knowsley / Liverpool
Posts: 15 Ste Collins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the info. OK I have tried everything now. All permissions set correctly, File Sharing is on etc etc. Still no joy with writing to database with IIS5 and WinXP Pro. No problems with the coding as it works fine on NT server and IIS Win2000.

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.

/KLP Curriculum Site/resources/resourcesadd.asp, line 104




help

Reply With Quote
  #10  
Old July 20th, 2003, 08:35 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Make sure the file is not set to read-only.

So you've setup IUSR_machinename with full access?

If so, and you're still getting the error - insert the error message into google. That's how i solve most issues.

Reply With Quote
  #11  
Old July 19th, 2004, 12:22 AM
maytsu maytsu is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 maytsu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question super computer

I am looking for the technology as one computer can control all other computers.If anyone replies, appreciated.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > IIS configuration for writing to database


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