CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • Microsoft JET Database Engine error '80004005' Disk or network error

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    141
  • Date Created
    Saturday, June 25, 2011
  • Last Updated
    Saturday, June 25, 2011
  • This Article Has been Viewed
    2907 times
  • Short Desc
    Database Connection string is not properly configured for the system you are running on. Change the connection string to make it work with the server the application is running on.
  • Details
    When designing your database driven web application, you will usually have 2 different connection string. 1 is the connection to your local testing server (Development Server) and then you will have the connection string that will work on the Production Server (Live Server). If you forget to change the string around when you upload to the LIVE server, you will experiance the following error.

     
    Microsoft JET Database Engine error '80004005'
    Disk or network error.
    /adocon.asp, line 16
  • Recreate Issue
    To recreate this error.
    Having the incorrect database connection string, will cause this issue.
    Example

    <%
    adoconTemp.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\hshome\44543\site.com\db\mydb.mdb"
    %>

    In this case, the drive letter is on the local server.
  • Resolve Issue
    To resolve this issue.
    Make sure that your connection is correct

    <%
    adoconTemp.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\hshome\44543\site.com\db\mydb.mdb"
    %>

    In this case, the drive letter had to be changed to the LIVE server drive letter.