473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Error in Connect Access Database

I am using ASP + IIS + MS access, when running the
following codes:

set Conn=Server.CREATEOBJECT("ADODB.CONNECTION")
conn.open "DRIVER={Microsoft Access Driver
(*.mdb)}; " & Server.MapPath("db.mdb")

The following erorr is show:
General error Unable to open registry key
'Temporary (volatile) Jet DSN for process 0x508
Thread 0x634 DBC 0x2181024 Jet'.

I have shared the MS knowledge base and try to
grant the modify Permissions to IUSR_SERVER on the
folder that holding the database, and set the
script authority in IIS, the error is still exist.
If I create a system DNS for that Access file and
modify the second code as

conn.Open "AKmobile"

Another error is show:
[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.

But there is no problem when conencting with MS
SQL Server.

Please help. Thnak a lot.
Jul 22 '05 #1
3 3539
Thomas Tsang wrote:
I am using ASP + IIS + MS access, when running the
following codes:

set Conn=Server.CREATEOBJECT("ADODB.CONNECTION")
conn.open "DRIVER={Microsoft Access Driver
(*.mdb)}; " & Server.MapPath("db.mdb")
Change your connection string to :

dim sConnect
sConnect = "Provider=microsoft.jet.oledb.4.0;" & _
"Data Source=" & Server.MapPath("db.mdb")
conn.open sConnect

The native OLEDB provider needs no access to the Registry. Using the
obsolete ODBC driver can lead to this error.
The following erorr is show:
General error Unable to open registry key
'Temporary (volatile) Jet DSN for process 0x508
Thread 0x634 DBC 0x2181024 Jet'.
Another error is show:
[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.


The IUSR account needs read/write permissions for the FOLDER containing the
database, not just the database. All database users must be able to create,
modify and delete the locking file (db.ldb) in order for multiuser activity
to be allowed.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #2
Thank you for your information, but 'Unspecified
error' is show when using
sConnect = "Provider=microsoft.jet.oledb.4.0;" &
"Data Source=" & Server.MapPath("db.mdb")
conn.open sConnect

And in fact I have already grant the full control
authority to the IUSR on the folder containing the
Access database, but still failure....
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> ¦b
¶l¥ó news:%2****************@TK2MSFTNGP09.phx.gbl
¤¤¼¶¼g...
Thomas Tsang wrote:
I am using ASP + IIS + MS access, when running the following codes:

set Conn=Server.CREATEOBJECT("ADODB.CONNECTION") conn.open "DRIVER={Microsoft Access Driver
(*.mdb)}; " & Server.MapPath("db.mdb")
Change your connection string to :

dim sConnect
sConnect = "Provider=microsoft.jet.oledb.4.0;" &

_ "Data Source=" & Server.MapPath("db.mdb")
conn.open sConnect

The native OLEDB provider needs no access to the Registry. Using the obsolete ODBC driver can lead to this error.
The following erorr is show:
General error Unable to open registry key
'Temporary (volatile) Jet DSN for process 0x508 Thread 0x634 DBC 0x2181024 Jet'.
Another error is show:
[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.

The IUSR account needs read/write permissions

for the FOLDER containing the database, not just the database. All database users must be able to create, modify and delete the locking file (db.ldb) in order for multiuser activity to be allowed.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"


Jul 22 '05 #3
Thomas Tsang wrote:
Thank you for your information, but 'Unspecified
error' is show when using
sConnect = "Provider=microsoft.jet.oledb.4.0;" &
"Data Source=" & Server.MapPath("db.mdb")
conn.open sConnect

You need to reinstall or install a later version of MDAC. Go to
msdn.microsoft.com and search for the latest MDAC.

Be sure to download and install the Jet components which are not included
with the MDAC installation.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: kamilla | last post by:
I have a mysql 3.5 server installed on a suse linux 8.1, with address 10.0.0.100. Now I want to access that db from a W2K pc, address 10.0.0.200. I am able to ping 10.0.0.100, but I cannot connect...
3
by: NK | last post by:
Hello, I am a beginner of DB2 and I am in a trouble that I can't access to sample database. Please see below. ENV : OS AIX-5.2/ DB2 8.1.2 SYMPTOM: I don't have any DB2 client terminal so...
7
by: kosta | last post by:
hello! one of my forms communicates with a database, and is supposed to add a row to a table using an Insert statement... however, I get a 'oledb - syntax error' exception... I have double...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
6
by: Chris Love | last post by:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not...
2
by: arsisthesis | last post by:
Hi all, I have a curious problem with the ERROR 1044 and 1045: -system: OS X 10.4.3 (bash shell) -bash schell prompt: /~ kssun$ -I have set passwd to 'kssun' -I set path:...
12
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I...
0
by: dmlinliverpool | last post by:
I am running VS.net 2005 Express and Sql Server 2005 Express. The DB and VS are both on the same PC. I cannot connect to a database from within VS. In Database Explorer I click Connect To...
5
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting...
0
by: Yoav | last post by:
Hello, I have been trying to enter SQL statmenbts to DB2 control center command line. I saw that user "Thames" wrote to you: > I have to repost my question for help. > > Yesterday I set up two...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.