473,408 Members | 2,405 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,408 software developers and data experts.

read microsoft access file on windows server 2003

Hi:
I'm having problems reading a Microsoft Access file from my ASP.Net app on a
Windows Server 2003 machine. The error message:
The Microsoft database engine cannot open the file, <my_file>. It is
already opened exclusively by another user, or you need permission to view
its data.

I've read some info about this (microsoft support article q316675) but I'm
still confused on what to do?
Mar 14 '06 #1
4 2290
Is the file opened in Access when you are trying to open the database? Is
there a .ldb file in the same folder as the database file? What provider are
you using to connect to the database?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.

"klynn" <kl***@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
Hi:
I'm having problems reading a Microsoft Access file from my ASP.Net app on
a
Windows Server 2003 machine. The error message:
The Microsoft database engine cannot open the file, <my_file>. It is
already opened exclusively by another user, or you need permission to view
its data.

I've read some info about this (microsoft support article q316675) but I'm
still confused on what to do?

Mar 15 '06 #2
There's not an .ldb file (lock file). thats not it. I'm using
Microsoft.Jet.OLEDB.4.0.

Key things here. It works on my machine running Win2000 with IIS.
It doesnt work on Win2003 Server running IIS. I know the issue is specific
to IIS on Win2003 Server.

Also, I added to the web.config file:
<identity impersonate="true"/> between the <system.web>
that didnt fix it.
Karen

"Kevin Spencer" wrote:
Is the file opened in Access when you are trying to open the database? Is
there a .ldb file in the same folder as the database file? What provider are
you using to connect to the database?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.

"klynn" <kl***@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
Hi:
I'm having problems reading a Microsoft Access file from my ASP.Net app on
a
Windows Server 2003 machine. The error message:
The Microsoft database engine cannot open the file, <my_file>. It is
already opened exclusively by another user, or you need permission to view
its data.

I've read some info about this (microsoft support article q316675) but I'm
still confused on what to do?


Mar 15 '06 #3
OK. so in the end, adding the <identity impersonate="true"/> to the
web.config for the application fixed the problem. IIS had to be completely
restarted afterwards.
Karen

"klynn" wrote:
There's not an .ldb file (lock file). thats not it. I'm using
Microsoft.Jet.OLEDB.4.0.

Key things here. It works on my machine running Win2000 with IIS.
It doesnt work on Win2003 Server running IIS. I know the issue is specific
to IIS on Win2003 Server.

Also, I added to the web.config file:
<identity impersonate="true"/> between the <system.web>
that didnt fix it.
Karen

"Kevin Spencer" wrote:
Is the file opened in Access when you are trying to open the database? Is
there a .ldb file in the same folder as the database file? What provider are
you using to connect to the database?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.

"klynn" <kl***@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
Hi:
I'm having problems reading a Microsoft Access file from my ASP.Net app on
a
Windows Server 2003 machine. The error message:
The Microsoft database engine cannot open the file, <my_file>. It is
already opened exclusively by another user, or you need permission to view
its data.

I've read some info about this (microsoft support article q316675) but I'm
still confused on what to do?


Mar 15 '06 #4
Hi Karen,
Key things here. It works on my machine running Win2000 with IIS.
It doesnt work on Win2003 Server running IIS. I know the issue is specific
to IIS on Win2003 Server.
Actually, it has nothing to do with IIS, and everything to do with Windows
2003 Server. The necessary permission is not a web server virtual directory
permission, but a file system permission. The user account under which
ASP.Net is running must have "read" (file) access to the folder.
Also, I added to the web.config file:
<identity impersonate="true"/> between the <system.web>
that didnt fix it.
Of course not. This is not all that is necessary in order to impersonate an
identity. It doesn't specify "who" to impersonate, nor does it supply their
credentials. You need something like:

<identity impersonate="true|false"
userName="domain\username"
password="password"/>

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.

"klynn" <kl***@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com... There's not an .ldb file (lock file). thats not it. I'm using
Microsoft.Jet.OLEDB.4.0.

Key things here. It works on my machine running Win2000 with IIS.
It doesnt work on Win2003 Server running IIS. I know the issue is specific
to IIS on Win2003 Server.

Also, I added to the web.config file:
<identity impersonate="true"/> between the <system.web>
that didnt fix it.
Karen

"Kevin Spencer" wrote:
Is the file opened in Access when you are trying to open the database? Is
there a .ldb file in the same folder as the database file? What provider
are
you using to connect to the database?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.

"klynn" <kl***@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
> Hi:
> I'm having problems reading a Microsoft Access file from my ASP.Net app
> on
> a
> Windows Server 2003 machine. The error message:
> The Microsoft database engine cannot open the file, <my_file>. It is
> already opened exclusively by another user, or you need permission to
> view
> its data.
>
> I've read some info about this (microsoft support article q316675) but
> I'm
> still confused on what to do?


Mar 16 '06 #5

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

Similar topics

7
by: Graham Taylor | last post by:
I've tried posting this in the 'microsoft.public.access' but I will post it here also, as I think it might be the webserver which is causing my problem. --------- I have an Access 2003 database...
18
by: jas | last post by:
Hi, I would like to start a new process and be able to read/write from/to it. I have tried things like... import subprocess as sp p = sp.Popen("cmd.exe", stdout=sp.PIPE)...
5
by: manokumar | last post by:
hiye, i notice that some if not all of my folders in winxp pro. are set as read only and its giving me some problem with development. so as the natural thing, i unchecked the read only option and...
7
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted...
2
by: Jared Hagel | last post by:
I've searched the web for a solution to this problem. Surprisingly, no problem/solution has been posted yet. We can read application configuration information fine when our asp.net application...
3
by: Dave Coate | last post by:
Hello again, I am going to re-post a question. I got some excellent suggestions from Rob and Mattias on this but their ideas did not solve the problem. Here is the original post: ...
5
by: Mitchell S. Honnert | last post by:
Is there a way, given the full path of a folder on a network, that one can programatically tell if you have Read access to that folder? I have an application where the user is able to select a...
5
by: jannordgreen | last post by:
I use windows 2000 and Visual Studio 2003. I have a vbnet web application on our intranet that needs to read a text file that sits on a different server. The general user does not have access to...
5
by: Arno | last post by:
reposted with the right microsoft managed newsgroup ID: Sorry for the inconvinience Hi, I've written a class for client-socket connection, but I get a lot of times the error message "Unable...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
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,...
0
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...

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.