all groups > iis security > july 2003 >
You're in the

iis security

group:

Problems with MS Access data source


Re: Problems with MS Access data source Tom Kaminski [MVP]
7/14/2003 8:27:25 AM
iis security: http://www.aspfaq.com/show.asp?id=3D2009

--=20
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running =
IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/
=20
[quoted text, click to view]
An ms access database is set up as a system data source and used in =
asp application. When second user tries to open asp page which connects =
to the database and fetches data, the following error is raised:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'=20

[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)'; =
file already in use.=20


Server is IIS 6.0, error occurs both in worker process and IIS 5.0 =
isolation mode. The same configuration works fine with no errors on IIS =
5.0 server.

--=20
Dmitry Korolyov,
d__k@nosmapformorons.mail.ru
Re: Problems with MS Access data source Tom Kaminski [MVP]
7/14/2003 9:13:11 AM
I'm not a mind reader, you didn't say what investigation you did.


[quoted text, click to view]
Tom, this is very helpful indeed, but don't you think that I've posted =
the original message without investigating the problem first? Note also =
that exactly the same configuration (NTFS permissions, system data =
source configuration, authentication settings on IIS) works just fine on =
IIS 5.0. Access database is located physically on the same server in =
both cases. Yes, I do agree that "something" is locking up the file, =
however I suspect that this "something" is IIS itself or one of its =
working processes. Note the behavior: when you first time open the page, =
it works, whe you open it from another computer on in different browser =
window (i.e. in another IIS session), it fails with the error message =
quoted in the first posting.
[quoted text, click to view]
http://www.aspfaq.com/show.asp?id=3D2009

--=20
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for =
running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/
=20
[quoted text, click to view]
An ms access database is set up as a system data source and used =
in asp application. When second user tries to open asp page which =
connects to the database and fetches data, the following error is =
raised:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'=20

[Microsoft][ODBC Microsoft Access Driver] Could not use =
'(unknown)'; file already in use.=20


Server is IIS 6.0, error occurs both in worker process and IIS 5.0 =
isolation mode. The same configuration works fine with no errors on IIS =
5.0 server.

--=20
Dmitry Korolyov,
d__k@nosmapformorons.mail.ru
Problems with MS Access data source Dmitry Korolyov
7/14/2003 3:01:06 PM
An ms access database is set up as a system data source and used in asp =
application. When second user tries to open asp page which connects to =
the database and fetches data, the following error is raised:
=20
Microsoft OLE DB Provider for ODBC Drivers error '80004005'=20

[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)'; =
file already in use.=20


Server is IIS 6.0, error occurs both in worker process and IIS 5.0 =
isolation mode. The same configuration works fine with no errors on IIS =
5.0 server.

--=20
Dmitry Korolyov,
d__k@nosmapformorons.mail.ru
Re: Problems with MS Access data source Dmitry Korolyov
7/14/2003 4:51:27 PM
Tom, this is very helpful indeed, but don't you think that I've posted =
the original message without investigating the problem first? Note also =
that exactly the same configuration (NTFS permissions, system data =
source configuration, authentication settings on IIS) works just fine on =
IIS 5.0. Access database is located physically on the same server in =
both cases. Yes, I do agree that "something" is locking up the file, =
however I suspect that this "something" is IIS itself or one of its =
working processes. Note the behavior: when you first time open the page, =
it works, whe you open it from another computer on in different browser =
window (i.e. in another IIS session), it fails with the error message =
quoted in the first posting.
[quoted text, click to view]
http://www.aspfaq.com/show.asp?id=3D2009

--=20
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for =
running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/
=20
[quoted text, click to view]
An ms access database is set up as a system data source and used in =
asp application. When second user tries to open asp page which connects =
to the database and fetches data, the following error is raised:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'=20

[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)'; =
file already in use.=20


Server is IIS 6.0, error occurs both in worker process and IIS 5.0 =
isolation mode. The same configuration works fine with no errors on IIS =
5.0 server.

--=20
Dmitry Korolyov,
d__k@nosmapformorons.mail.ru
Re: Problems with MS Access data source Dmitry Korolyov
7/14/2003 5:58:53 PM
But you didn't try to answer the original question too. Well nevermind =
then.
[quoted text, click to view]
I'm not a mind reader, you didn't say what investigation you did.


[quoted text, click to view]
Tom, this is very helpful indeed, but don't you think that I've =
posted the original message without investigating the problem first? =
Note also that exactly the same configuration (NTFS permissions, system =
data source configuration, authentication settings on IIS) works just =
fine on IIS 5.0. Access database is located physically on the same =
server in both cases. Yes, I do agree that "something" is locking up the =
file, however I suspect that this "something" is IIS itself or one of =
its working processes. Note the behavior: when you first time open the =
page, it works, whe you open it from another computer on in different =
browser window (i.e. in another IIS session), it fails with the error =
message quoted in the first posting.
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in =
message news:beu7hv$9j410@kcweb01.netnews.att.com...
http://www.aspfaq.com/show.asp?id=3D2009

--=20
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for =
running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/
=20
"Dmitry Korolyov" <d__k@nospamformorons.mail.ru> wrote in =
message news:eOVGCrfSDHA.3088@TK2MSFTNGP10.phx.gbl...
An ms access database is set up as a system data source and used =
in asp application. When second user tries to open asp page which =
connects to the database and fetches data, the following error is =
raised:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'=20

[Microsoft][ODBC Microsoft Access Driver] Could not use =
'(unknown)'; file already in use.=20


Server is IIS 6.0, error occurs both in worker process and IIS =
5.0 isolation mode. The same configuration works fine with no errors on =
IIS 5.0 server.

--=20
Dmitry Korolyov,
d__k@nosmapformorons.mail.ru
Re: Problems with MS Access data source jcochran.nospam NO[at]SPAM naplesgov.com
7/14/2003 8:18:41 PM
Dmitry, did you look at the reference supplied? Have you checked
permissions, did you check the LDB lock file, have you configured
authorization correctly? Remember that just because it worked in
IIS5, on a W2K system, has no bearing on whether you've correctly
applied permissions on an IIS6 system, which is Server 2003 and comes
with permissions locked down.

80004005 errors are almost always permission related.

Though at your request I'm also perfectly willing to 'never mind'.

Jeff

On Mon, 14 Jul 2003 17:58:53 +0400, "Dmitry Korolyov"
[quoted text, click to view]
Re: Problems with MS Access data source Dmitry Korolyov
7/15/2003 2:25:50 AM
Yes, I did check everything. File system permissions both for the website
itself and the database (mdb file) are very easy to check and veryfy that
they are the same on both systems.
System DSNs are configured exactly in the same manner on both systems. This
can be easily verified as well.
Talking about "Locked down" state of IIS, I see no problem here. Both web
servers are configured to user intergated windows authentication and do not
allow anynomous connections. There may be other differences, but I do not
see how they would affect ODBC connectivity. Web app does not use ISAPI
filters or anything. Since my original post we narrowed it down to
performing a single select statement, and the problem still exist.
In other words, I would not suggest looking into general IIS troubleshooting
part - because it does work fine on IIS 5.0. And the reference says nothing
about how "locked down" configuration of IIS 6.0 may affect database
connectivity - it simply knows nothing about IIS 6.0 existense.

--
Dmitry Korolyov
d__k@nospamformorons.mail.ru
To e-mail me, remove "nospamformorons"
from the address.


[quoted text, click to view]
posted the original message without investigating the problem first? Note
also that exactly the same configuration (NTFS permissions, system data
source configuration, authentication settings on IIS) works just fine on IIS
5.0. Access database is located physically on the same server in both cases.
Yes, I do agree that "something" is locking up the file, however I suspect
that this "something" is IIS itself or one of its working processes. Note
the behavior: when you first time open the page, it works, whe you open it
from another computer on in different browser window (i.e. in another IIS
session), it fails with the error message quoted in the first posting.
[quoted text, click to view]
in asp application. When second user tries to open asp page which connects
to the database and fetches data, the following error is raised:
[quoted text, click to view]
5.0 isolation mode. The same configuration works fine with no errors on IIS
5.0 server.
[quoted text, click to view]

Re: Problems with MS Access data source jcochran.nospam NO[at]SPAM naplesgov.com
7/15/2003 2:10:02 PM
On Tue, 15 Jul 2003 02:25:50 +0400, "Dmitry Korolyov"
[quoted text, click to view]

Same on both systems or correct for Server 2003?

[quoted text, click to view]

Okay, so you're using ODBC then instead of OLEDB. Does your ODBC work
if you use a client such as Access to attach to the database?

[quoted text, click to view]

In other words it works for everything but that SELECT statement?
Post the SELECT statement. And do a Response.Write of the SQL
statement to see what's actually getting sent.

[quoted text, click to view]

Again, IIS6 is *not* IIS5. I have an oil filter that worked fine on
my Pinto, but doesn't seem to work on my Mazda. Troubleshoot the
current setup, not the old one.

[quoted text, click to view]

I'm getting to feel sorry I ever tried to help here. Is your
application a .NET app, straight ASP or something else? Have you
tried a very basic connection, then the SELECT statement? Have you
tried an OLEDB connection instead of the ODBC?

The error you posted is almost always a permissions error. With
Access, it could be an exclusive lock, such as having Access or VS.NET
open on the server, it could be file permissions, it could be Temp
file creation, it could be the ODBC key in the registry, it could be
Access security or it could be the specific code you use. Make sure
you're configuring permissions according to the account the app is
running under, which may or may not be the logged in user.

Jeff

AddThis Social Bookmark Button