Re: Error accessing MS Access database with Linked Tables on fileshare
- From: Paul Clement <UseAdddressAtEndofMessage@xxxxxxxxxxxxxx>
- Date: Fri, 21 Apr 2006 08:40:57 -0500
On Fri, 21 Apr 2006 01:42:01 -0700, Pål Eilertsen <PlEilertsen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
¤ Hi,
¤
¤ I have a ASP.Net application that uses a MS Access database. The site works
¤ fine when all databases resides locally but on my public server I need to use
¤ a different database where the main databasefile resides locally but also has
¤ tables linked that resides on a fileshare/network drive.
¤
¤ When I try to run my app I know get an:
¤ 'database.mdb' is not a valid path. Make sure that the path name is spelled
¤ correctly and that you are connected to the server on which the file resides.
¤ The database.mdb file is one that resides on the fileshare.
¤
¤ I suspect that this has something to do with permissions on the remote
¤ machine but I don not understand what I need to do. I have tried to use
¤ impersonation by adding the <identity impersonate="true" /> tag to the
¤ web.config file but that only seems to work on my win XP machine running IIS
¤ 5.1. When I try to do the same on the server (Win2K running IIS 5.0) I get an
¤ "Unspecified error" when calling Connection.Open().
¤
¤ Does someone know a solution? Am I even posting this on the right forum?
Well yes this is probably the appropriate group although I did reply in the vb.database group. We
can pick it up here if you would like. Here were my responses:
If the app is running under the local anonymous account you must have an identical local account
with the same credentials (user ID and password) on the remote machine. This will enable you to
delegate security to the remote machine.
An alternative delegation scenario would be to change the anonymous account under which the app runs
(in IIS) to a domain account (assuming that both machines are in the same domain - if you have one).
I should have mentioned a couple of other issues. First you should be using a UNC path instead of a
mapped drive letter for your linked tables.
Second, you should enable impersonation for the ASP.NET app if you want to delegate security for the
default anonymous account or a selected domain account. Otherwise, the default ASP.NET account will
be delegated (which is ASPNET under Win2K and WinXP).
Paul
~~~~
Microsoft MVP (Visual Basic)
.
- Follow-Ups:
- Re: Error accessing MS Access database with Linked Tables on files
- From: Pål Eilertsen
- Re: Error accessing MS Access database with Linked Tables on files
- Prev by Date: Re: security for row level but not based on Database user's login
- Next by Date: data adapter
- Previous by thread: Re: security for row level but not based on Database user's login
- Next by thread: Re: Error accessing MS Access database with Linked Tables on files
- Index(es):
Relevant Pages
|