473,830 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error in Connect Access Database

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

set Conn=Server.CRE ATEOBJECT("ADOD B.CONNECTION")
conn.open "DRIVER={Micros oft 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 3576
Thomas Tsang wrote:
I am using ASP + IIS + MS access, when running the
following codes:

set Conn=Server.CRE ATEOBJECT("ADOD B.CONNECTION")
conn.open "DRIVER={Micros oft Access Driver
(*.mdb)}; " & Server.MapPath( "db.mdb")
Change your connection string to :

dim sConnect
sConnect = "Provider=micro soft.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=micro soft.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******@NOyah oo.SPAMcom> ¦b
¶l¥ó news:%2******** ********@TK2MSF TNGP09.phx.gbl
¤¤¼¶¼g...
Thomas Tsang wrote:
I am using ASP + IIS + MS access, when running the following codes:

set Conn=Server.CRE ATEOBJECT("ADOD B.CONNECTION") conn.open "DRIVER={Micros oft Access Driver
(*.mdb)}; " & Server.MapPath( "db.mdb")
Change your connection string to :

dim sConnect
sConnect = "Provider=micro soft.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=micro soft.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
6176
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 to the db, and get error 2013. I have tried with MySQL Administrator 1.0 and also with ODBC. The db on linux has grant all on *.* to ''@'10.0.0.%' and also tried .... to root@10.0.0.200 and others seen on posted messages. I can access that db...
3
14627
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 far and all the troubles
7
6683
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 checked, and the insert works fine (tried to use it from access)... im using visual C# express 2k5... what could be wrong? thanks!
12
2799
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 both the iis and sql server in a single machine. Not too long ago, the machine had some hardware problems, and management has decided to purchase new servers, for both asp.net and sql server.
6
4961
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 allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) I get this the frist time I open an ASP.NEt 2.0 site on my development machine now. It started happening when I tried to use the...
2
9463
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: PATH=${PATH}:/usr/local/mysql/bin - symptom 1
12
6589
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 have added the new user to the database and have given the user access to the database for the app. But everytime I try and login using this users ID, I always get the error: Login failed for user Christian.Gaut If I login using my userid and...
0
1252
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 Database to add an existing DB to the DB Explorer. In the dialog box I navigate to the MDF of my DB and after I click Test Connection it takes some 20 seconds before giving the error ..."Error
5
3564
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 this error. Any idea why? Server Error in '/myuser4/MyWebApp' Application. --------------------------------------------------------------------------------
0
3124
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 DB UDB ESE V8.2 server on linux and windows > platform, respectively. Both servers have been connected without any > problems > However, It gave me such error when I tried to make db connection via > command prompt(windows)
0
9641
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10769
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10522
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10197
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7740
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5615
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4408
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3956
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3072
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.