PRB: 'Not a valid path' Error when Using Access Data Source

ID: Q167452


The information in this article applies to:


SYMPTOMS

When attempting to view a Web page that contains a connection to an Access data source, the following error is displayed:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access 97 Driver] '(unknown)' isn't 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.

You can, however, still see all the data in the Data View tab.


CAUSE

When using a FILE DSN in Visual InterDev, the path to the Access .mdb file is hard coded into the Global.asa. The error is returned because the Web Server cannot find the .mdb with the path specified. For example, here are two possible scenarios:

Result: Trying to browse MyPage.asp connected to this data source gets the error.

Cause: The server does not have a drive mapped to "H."

-or-

Result: Trying to browse MyPage.asp connected to this data source gets the error.

Cause: The server does not have this directory structure on drive "C".


RESOLUTION

There are three different ways you can get around the problem described above:

  1. Run the Visual InterDev client on the Web server. Now both client and server have the same directory structures.


  2. Make a duplicate directory structure on both client and server (that is, both machines have C:\Data\MyData.mdb.

    Issue: The Data View Tab allows editing of the data, but only the client copy is being modified. The Web pages still see the server data and not the new modifications.


  3. Put the data on the server and create a public share for the client machine to access. When creating the Data Connection, specify the UNC name (that is, \\ServerName\ShareName\MyData.mdb).

    Issue: Everyone is going to have public access to your data. You can restrict access to certain developers, but this needs to be maintained outside Visual InterDev.



REFERENCES

For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:

http://support.microsoft.com/support/vinterdev/


Keywords          : kbinterop kbnokeyword kbide kbVisDBTools kbVisID kbVisID100 kbVisID600 kbGrpASP 
Version           : WINDOWS:1.0,6.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 4, 1999