p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 26th, 2008, 07:09 PM
Friend of Wrox
Points: 5,507, Level: 31
Points: 5,507, Level: 31 Points: 5,507, Level: 31 Points: 5,507, Level: 31
Activity: 20%
Activity: 20% Activity: 20% Activity: 20%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,654
Thanks: 6
Thanked 4 Times in 4 Posts
Send a message via AIM to mat41
Default ODBC Microsoft Access Driver Issue

Hello

Please let me applogize for what could technically be described as a cross post. This issue was posted in the begginer area yesturday:

http://p2p.wrox.com/topic.asp?TOPIC_ID=72331

I do beleive its a more complex issue and should be here. Aditionly the problem chnage slightly as a reult of a registry permissions change to the ODBC area.

History:
I have new XP pro machine. While getting everything up an running all of my sites using Access which were previously runing fine are now giving me the following error on the connection string line:

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 0xb9c Thread 0xe48 DBC 0x1164024 Jet'


Please note all the connections strings in all the sites run fine everywhere else (in the public domain, my old XP Pro machine and my Win 2000 old machine) excpet for my new machine. The connection string is:

Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/DB/em.mdb") & ";"

After assistance from very helpful memeber (Old Pendant) the following article:

http://support.microsoft.com/kb/295297

lead me to allow full permissions in the following area of the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\ODBC

Which now gives me the following area for all sites:

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.


Permissions for everyone, IUSR, [logged on user account] have been set to full in everyarea i can think of including temp directorys, the .mbd its self and the dir which it resides in.

I am really very stuck here. I spent hours trying to find a solution yesterday however all advice has been carried out, checked and double checked. Has anybody seen this before? What can I do or do you suggest I do? I havnt seen 'Mr ASP' around the classic ASP area of the forum in some time - Imar your opinion would be very helpful and as always very much appriciated indeed - Along with all the other members of course.

Sorry about the long post - TYVMIA.


Wind is your friend
Matt
www.elitemarquees.com.au
__________________
Wind is your friend
Matt

http://www.elitemarquees.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 28th, 2008, 12:34 PM
Imar's Avatar
Wrox Author
Points: 33,170, Level: 79
Points: 33,170, Level: 79 Points: 33,170, Level: 79 Points: 33,170, Level: 79
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,161
Thanks: 7
Thanked 188 Times in 186 Posts
Default

From my experience, 80004005 errors are almost always related to security errors: http://Imar.Spaanjaars.Com/QuickDocId.aspx?quickdoc=263

Try this:

1. Make IUSR and IWAM accounts member of the Administrators group

2. Reboot

3. Try again.

If it works, remove them from the group Administrators again, and try to find out where the problem lies (did you check temp folders like C:\Temp and C:\Windows\Temp)?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 29th, 2008, 07:34 PM
Friend of Wrox
Points: 5,507, Level: 31
Points: 5,507, Level: 31 Points: 5,507, Level: 31 Points: 5,507, Level: 31
Activity: 20%
Activity: 20% Activity: 20% Activity: 20%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,654
Thanks: 6
Thanked 4 Times in 4 Posts
Send a message via AIM to mat41
Default

Hi Imar - nice to see you again. As always your time is like its weight in gold, all fixed!!!!

After looking at your very informative quick doc, the IUSR was the IIS account being used. As you suggest above making this user a part of the Administrator group and rebooting fixed the issue. Note - I didnt need to make the IWAM part of the group also.

This problem was very strange, had no logic to it and it shouldnt be neccessary to make this user part of the admin group given the other permission alterations I carried out. mmmm very weird indeed.

To answer your other question - yes full permissions were given to both of the Temp dir locations.

Have a fine day Imar :o) For others having this issue make sure you read:

http://p2p.wrox.com/topic.asp?TOPIC_ID=72331

To get a full understanding of what steps were taken to fix things. Thanks also to Old Pendant and his time and effort in the above post.

Wind is your friend
Matt
www.elitemarquees.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old June 30th, 2008, 12:04 AM
Friend of Wrox
Points: 4,769, Level: 29
Points: 4,769, Level: 29 Points: 4,769, Level: 29 Points: 4,769, Level: 29
Activity: 91%
Activity: 91% Activity: 91% Activity: 91%
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,319
Thanks: 3
Thanked 69 Times in 68 Posts
Default

But this is a DANGEROUS solution!

It means that your ASP pages will, in general, have WAY more "permissions" than they should have.

If you, yourself, tightly control all your ASP pages/code, then it's probably okay. But if not, you could be asking for other kinds of trouble.

Note that IMAR suggested that, if that worked, you should then *remove* IUSR_xxx from the Admin group and try to find the "real" problem.

Now, I do hear you saying "but that *is* the real problem." So if you don't have tight control of your ASP site, I don't know if there *is* any good solution!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old June 30th, 2008, 01:50 AM
Friend of Wrox
Points: 5,507, Level: 31
Points: 5,507, Level: 31 Points: 5,507, Level: 31 Points: 5,507, Level: 31
Activity: 20%
Activity: 20% Activity: 20% Activity: 20%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,654
Thanks: 6
Thanked 4 Times in 4 Posts
Send a message via AIM to mat41
Default

yes its not a safe solution in a production environment however this issue is on my local working machine. The sites that are hosted work without issue.

I still dont understand why this step was neccesary given all the other permission alterations I made. I am asuming all would agree to add the IUSR to the admin group should never be needed? So my new local machine is an odd ball without logical reason....Im just glad these sites are now running - Thankyou again and have a fine day :o)

Wind is your friend
Matt
www.elitemarquees.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #6 (permalink)  
Old June 30th, 2008, 11:37 AM
Imar's Avatar
Wrox Author
Points: 33,170, Level: 79
Points: 33,170, Level: 79 Points: 33,170, Level: 79 Points: 33,170, Level: 79
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,161
Thanks: 7
Thanked 188 Times in 186 Posts
Default

Yes, you're correct. You never need to give administrative rights to the IUSR account on a production server.

IMO, it would be better to remove the account from the Admin group again and find the real cause. However, if it's a development machine, it doesn't matter much as the risk is probably quite low (then again: a nice buggy for each loop using the FileSystemObject can easily erase your entire hard drive.... ;) )

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Microsoft][ODBC SQL Server Driver] TIME OUT ERROR rtr1900 ASP.NET 2.0 Basics 1 November 12th, 2008 09:36 AM
ERROR [42000] [Microsoft][ODBC driver for Oracle][ sanjeev jha General .NET 0 June 28th, 2008 01:50 AM
[Microsoft][ODBC SQL Driver]Connection is busy muthumari_p2003@yahoo.com Pro JSP 0 May 8th, 2006 08:51 AM
[Microsoft][ODBC Microsoft Access Driver] Syntax e chinedu Classic ASP Databases 3 November 18th, 2004 03:48 PM
[ODBC Microsoft Access Driver] !!!Error!!! Varg_88 Classic ASP Databases 3 August 30th, 2004 07:19 AM



All times are GMT -4. The time now is 08:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc