473,671 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems accessing an MS Access 2000 DB in ASP

Our graphic designer is developing our new company website. We have switched
providers and currently she is working on the new website which currently
ressides on the new providers server as they support the ASP development
environment. Their server is a Win2K3 server.

She is writing an ASP module to connect to an MS Access 2000 database and is
having problems connecting. In this database there is only one table.

She has tried many different connection strings all to no avail and then
found from investigating that the best and fastest method is to use the OLE
connection string. However, each time she runs the ASP code she gets the
following error...

----------------------------------------------------------------------------
--------
Microsoft JET Database Engine error '80004005'

You do not have the necessary permissions to use the
'E:\Files\Local User\truenorth\ NewFiles\models .mdb' object. Have your system
administrator or the person who created this object establish the
appropriate permissions for you.

/NewFiles/db_simple2.asp, line 14
----------------------------------------------------------------------------
--------

We have asked the provider to make sure that the NTFS file privs have been
set appropriately on the directory this db is in, and they have informed us
that it has been. I use Access here at work, and I can generate this error,
if I have forgotten to give a user "open/run" rights on the actual
database - using the 'Security' settings. But, we use a workgroup
information file (.mdw) file here at work. Typically if you do not specify
the workgroup file the default user of admin is used - which has full access
to the DB. However, if our provider does not have Access installed on their
server - which they likely do not, then there would be no default system.mdw
file - and then how would you connect to the db and get any privs at all?
Does anyone have any clue what might be happening here? Do we need to
specify a system file in the db connection string and also specify a
username/password to connect with? And, if so, does anyone have the proper
syntax for doing so?

The ASP code she is using is shown below...

----------------------------------------------------------------------------
-----
Dim cnnDB ' ADO connection
Dim rstDB ' ADO recordset
Dim strDBPath ' path to Access database (*.mdb) file
Set cnnDB = Server.CreateOb ject("ADODB.Con nection")
Set rstDB = Server.CreateOb ject("ADODB.Rec ordset")

' path to Access 2000 database on Internet providers server
strDBPath = Server.MapPath
("E:\Files\Loca lUser\truenorth \NewFiles\datab ase\models.mdb" )

cnnDB.Open "Data Source=" & strDBPath & ";Provider=Micr osoft.Jet.OLEDB .4.0;"

Set rstDB = cnnDB.Execute(" SELECT * FROM models")

Do While Not rstDB.EOF
rstSearch.Field s("modelfolder" )
rstSearch.Field s("modeltotal ")
rstSearch.Field s("modeltype" )

rstDB.MoveNext

Loop

rstDb.Close

Set rstDB = Nothing

cnnDB.Close

Set cnnDB = Nothing
Jul 19 '05 #1
1 2135
Brad Pears wrote:
Our graphic designer is developing our new company website. We have
switched providers and currently she is working on the new website
which currently ressides on the new providers server as they support
the ASP development environment. Their server is a Win2K3 server.

She is writing an ASP module to connect to an MS Access 2000 database
and is having problems connecting. In this database there is only one
table.

She has tried many different connection strings all to no avail and
then found from investigating that the best and fastest method is to
use the OLE connection string. However, each time she runs the ASP
code she gets the following error...

-------------------------------------------------------------------------- -- --------
Microsoft JET Database Engine error '80004005'

You do not have the necessary permissions to use the
'E:\Files\Local User\truenorth\ NewFiles\models .mdb' object. Have your
system administrator or the person who created this object establish
the appropriate permissions for you.

/NewFiles/db_simple2.asp, line 14
-------------------------------------------------------------------------- -- --------

We have asked the provider to make sure that the NTFS file privs have
been set appropriately on the directory this db is in, and they have
informed us that it has been.


The IUSR_machinenam e account needs read/write permissions on the folder
containing the database file. If you are connecting in a Session or
Application event, or the application protection is set to high, then the
IWAM_machinenam e account also needs those permissions.

The person setting up the security for your database can verify that the
appropriate permissions are set by logging into the machine using the IUSR
account and verifying that he can create and delete a text file in the
database folder.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #2

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

Similar topics

3
13656
by: PW | last post by:
Hi, I'm using WinXP-Pro, ASP classic, IIS 5.0. I regularly get this error, but I know I am the only user accessing the website at the time of the error. I looked it up on the MS support webiste. Their recommendation is this ... ------------------
4
2295
by: David | last post by:
Hi, I want to work with Access 2002. I will need to be able to distribute my application to users that may still have access 2000 on their computers. I know access 2002 has a function that enables you to convert a database to a format of an earlier version of Access. I wanted to check for any unforeseen problems so here is what I did: I used Access 2002 to convert my Access 2000 application to the 2002
4
3520
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
1
650
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
4
1289
by: Fred Nelson | last post by:
Help! I just upgraded MSDE to the latest version on my Windows 2000 server. Everything appears to work fine - the enterprise manager on both the server and on my computer are able to access the new database and I have loaded it with all of its data using the enterprise manager. (Actually I've completed the entire cycle three times!) The catch is that my VB.NET web application is no longer able to access the database! I'm using the...
5
3900
by: Mike | last post by:
I'm having trouble accessing SQL2005 Standard Edition as a second instance of SQL Server where the first instance is SQL 2000 Enterprise Edition. I installed SQL 2005 as a named instance "SQL2005". The server is running Windows 2000 SP4 ON A 32-Bit machine. When I look in Services I see the SQL Server (SQL2005), SQL Server Agent (SQL2005) services there. I went into SQL Server Configuration manager and disabled the named pipes protocol...
5
4714
by: terryc | last post by:
Hi Guys I've set up a web app on my machine using IIS and XP Pro. I can access the site using my machine (http://localhost/appName) no problems, but when I try and access this app using another machine over the network (http://192.XXX.X.X/appName) it just times out. Any ideas what the problem would be? I've just changed machine, previous to this I was running windows 2000 and I could access the app over the network with no problems. ...
4
2341
by: ThePhenix | last post by:
Hi everybody, I have recently been doing a conversion for my boss for a access 2000 database (both front and backend) to a MSSQL backend. I finished the conversion today (as quite a lot of the code / queries ran slow due to access running the queries locally rather than on the server). And tested it on my and my boss's machine with no problems so he gave the go ahead to update everybody to our new mssql 2000 backend with the modified...
8
7279
by: John | last post by:
Hi We had an sbs 2003 with isa 2000 server. We wre able to access a remote sql server (hosted at our web host) just fine. We replaced the server with a new sbs 2003 r2 with isa 2004 server and even though I have opened port 1433 in isa 2004 we can't access the remote sql server anymore. Where can I look for any blocks? Many Thanks
0
8909
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...
0
8819
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8596
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
8667
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...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
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
4221
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
2806
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
1801
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.