472,333 Members | 2,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

ASP.NET & Access database

I'm having endless problems with gaining access to an Access Database that
sits on a different server. My ASP.NET app cannot gain control. The errror
message I get is:

The Microsoft Jet database engine cannot open the file
'\\Server1\DataFolder\Countries5.mdb'. It is already opened exclusively by
another user, or you need permission to view its data.

I have setup the connection string to have the username = admin and the
password is blank. At design time I can see the data no problem, yet as
soon as the ASP.NET app is running, I get the above error.

Any ideas anyone?

Regards
MW
Nov 19 '05 #1
3 1324
Hi,
I think the info in this link can help you resolve this issue
http://support.microsoft.com/default...;EN-US;q306269
--
The best
srini
http://www.expertszone.com
"MW de Jager" wrote:
I'm having endless problems with gaining access to an Access Database that
sits on a different server. My ASP.NET app cannot gain control. The errror
message I get is:

The Microsoft Jet database engine cannot open the file
'\\Server1\DataFolder\Countries5.mdb'. It is already opened exclusively by
another user, or you need permission to view its data.

I have setup the connection string to have the username = admin and the
password is blank. At design time I can see the data no problem, yet as
soon as the ASP.NET app is running, I get the above error.

Any ideas anyone?

Regards
MW

Nov 19 '05 #2
MW,

There's two types of permissions needed in order to be
able to access data in a database in an external server:

1. database permissions
2. file permissions

re:
I have setup the connection string to have the username = admin
That corresponds to the database permission and is fine that way.

You also need to allow file permission access to
the account under which ASP.NET is running.

i.e.,
your ASP.NET account must have permission to access \\Server1\DataFolder\

Notice that you need read/write permissions assigned for the full folder,
and not just for the database file.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"MW de Jager" <mw*******@privatemail.me.uk> wrote in message
news:d8**********@ctb-nnrp2.saix.net... I'm having endless problems with gaining access to an Access Database that sits on a
different server. My ASP.NET app cannot gain control. The errror message I get is:

The Microsoft Jet database engine cannot open the file
'\\Server1\DataFolder\Countries5.mdb'. It is already opened exclusively by another user,
or you need permission to view its data.

I have setup the connection string to have the username = admin and the password is
blank. At design time I can see the data no problem, yet as soon as the ASP.NET app is
running, I get the above error.

Any ideas anyone?

Regards
MW

Nov 19 '05 #3
Ok, it's working now. If I open my website on my app server, on which the
access database is, it works fine. If I however run the app local with the
access data on the server (like when you are still coding), then my problems
return with a vengeance.

If I use impersonation with usename="NT AUTHORITY\NETWORK SERVICE" it still
runs ok until I try to open the page that requests the access database. The
above username is what is being used when I run it on the server with no
problems.

Any ideas as to which user name to use or is my problem elsewhere?

Regards
MW
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ue**************@TK2MSFTNGP15.phx.gbl...
MW,

There's two types of permissions needed in order to be
able to access data in a database in an external server:

1. database permissions
2. file permissions

re:
I have setup the connection string to have the username = admin


That corresponds to the database permission and is fine that way.

You also need to allow file permission access to
the account under which ASP.NET is running.

i.e.,
your ASP.NET account must have permission to access \\Server1\DataFolder\

Notice that you need read/write permissions assigned for the full folder,
and not just for the database file.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"MW de Jager" <mw*******@privatemail.me.uk> wrote in message
news:d8**********@ctb-nnrp2.saix.net...
I'm having endless problems with gaining access to an Access Database
that sits on a different server. My ASP.NET app cannot gain control.
The errror message I get is:

The Microsoft Jet database engine cannot open the file
'\\Server1\DataFolder\Countries5.mdb'. It is already opened exclusively
by another user, or you need permission to view its data.

I have setup the connection string to have the username = admin and the
password is blank. At design time I can see the data no problem, yet as
soon as the ASP.NET app is running, I get the above error.

Any ideas anyone?

Regards
MW


Nov 19 '05 #4

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

Similar topics

7
by: Will | last post by:
On the subject of Data Warehouses, Data Cubes & OLAP…. I would like to speak frankly about Data Warehouses, Data Cubes and OLAP (on-line...
2
by: lobrys | last post by:
hi I build a VB .NET application that makes file access, environnemet acess, database access, etc.... If I ran the app locally, everything...
8
by: Will | last post by:
On the subject of Data Warehouses, Data Cubes & OLAP…. I would like to speak frankly about Data Warehouses, Data Cubes and OLAP (on-line...
2
by: lobrys | last post by:
hi I build a VB .NET application that makes file access, environnemet acess, database access, etc.... If I ran the app locally, everything...
4
by: Suzette | last post by:
I have an excel file that automatically updates when opened, pulling information from an Access database into into various pivot tables. I...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.