472,330 Members | 1,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,330 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 2211
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...
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 =...
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...
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...
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...
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...
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...
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...
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...
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
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. ...
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...

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.