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

Last reviewed: December 11, 1997
Article ID: Q167452
The information in this article applies to:
  • Microsoft Visual InterDev, version 1.0

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:

  • The Access .mdb file is on the server.
  • The client machine has drive "H" mapped to this directory.
  • When creating the Global.asa, InterDev hard codes "H:\MyData.mdb."

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-

  • The Access .mdb file is on the client machine.
  • When creating the Global.asa, InterDev hard codes "C:\Data\MyData.MDB."

    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          : VIMisc kbinterop
    Version           : 1.0
    Platform          : WINDOWS
    Issue type        : kbprb

  • ================================================================================


    THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

    Last reviewed: December 11, 1997
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.