80004005 Error . . .

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default 80004005 Error . . .

    Hello,

    I am getting the infamous 80004005 (like just about everyone else on the net
    it seems). Using NT4/IIS4, Access 97 DB, it is a low volume (20 hits a day)
    site that worked perfectly for over a year. Then suddenly, without me
    changing any code on the site, it decided to start giving 80004005 errors.
    Basically, in trying to fix this, I have tried several different connections
    to the db,

    objConn.ConnectionString = "DSN=Ops"
    objConn.Open

    or
    objConn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=c:\database.mdb"

    or (had this suggested to me today but it also doesnt work for very long)
    objConn.Open "Provider=MSDASQL.1;Extended
    Properties=""DSN=Ops;FIL=MSAccess;UID="";"";"

    Whichever connection I use, it will work fine for a short period of time,
    and then stop working again. If I edit the code, and change the connection
    to one of the other strings, it will work for a short while, and then stop
    again. Once one page fails, all pages for all users fail. I have tried
    different login names specified in the DSN properties, and in my ASP
    connections. All permissions for the IUSR account have been checked and
    double checked, I have updated MDAC several times (now up to 2.8), all the
    patches and updates I can find are loaded onto the server, and virus scans
    come up clean. I am closing and destroying the connections and recordsets,
    and diming the variables. I have run compact and repair on the database,
    but nothing I do fixes the error for more than half a day. Can anyone
    suggest anything?

    Thanks in advance,

    Regards,
    Walter Rands-Trevor


    Walter Rands-Trevor Guest

  2. Similar Questions and Discussions

    1. Error connecting (80004005)
      I am connecting to an access database using an oledb connction string. The referenced path is browseable by the web server (IIS on Win 2000). IUSR...
    2. Help 80004005 Error...
      I'm working with a customer who has an NT Server (I think it's SP3) running IIS 4. We just converted the databases to Access 2000 and loaded Access...
    3. 80004005 error
      I initially posted this in a different ng. I was advised that this ng was perhaps more attuned to my question. The following is my original post:...
    4. Provider error '80004005' Unspecified error - ARRRGGGHHH!!!!!
      I have searched usenet & dev sites to no avail although many have had similar problems, reckon its an issue with DSN but not sure.. error occurs...
    5. Microsoft OLE DB Provider for ODBC Drivers error '80004005' Error
      Hi folks - i've got a windows 2000 server (SP3) i've run the IIS lockdown tool on it and set for dynamic websites - all the static pages within the...
  3. #2

    Default Re: 80004005 Error . . .

    There are about 50 80004005 errors. Could you be more specific? Or, see
    the following:

    [url]http://www.aspfaq.com/2009[/url]
    [url]http://www.aspfaq.com/80004005[/url]

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]




    "Walter Rands-Trevor" <walter@arknet.co.nz> wrote in message
    news:uhh#vZy$DHA.2348@TK2MSFTNGP09.phx.gbl...
    > Hello,
    >
    > I am getting the infamous 80004005 (like just about everyone else on the
    net
    > it seems). Using NT4/IIS4, Access 97 DB, it is a low volume (20 hits a
    day)
    > site that worked perfectly for over a year. Then suddenly, without me
    > changing any code on the site, it decided to start giving 80004005 errors.
    > Basically, in trying to fix this, I have tried several different
    connections
    > to the db,
    >
    > objConn.ConnectionString = "DSN=Ops"
    > objConn.Open
    >
    > or
    > objConn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA
    SOURCE=c:\database.mdb"
    >
    > or (had this suggested to me today but it also doesnt work for very long)
    > objConn.Open "Provider=MSDASQL.1;Extended
    > Properties=""DSN=Ops;FIL=MSAccess;UID="";"";"
    >
    > Whichever connection I use, it will work fine for a short period of time,
    > and then stop working again. If I edit the code, and change the
    connection
    > to one of the other strings, it will work for a short while, and then stop
    > again. Once one page fails, all pages for all users fail. I have tried
    > different login names specified in the DSN properties, and in my ASP
    > connections. All permissions for the IUSR account have been checked and
    > double checked, I have updated MDAC several times (now up to 2.8), all the
    > patches and updates I can find are loaded onto the server, and virus scans
    > come up clean. I am closing and destroying the connections and
    recordsets,
    > and diming the variables. I have run compact and repair on the database,
    > but nothing I do fixes the error for more than half a day. Can anyone
    > suggest anything?
    >
    > Thanks in advance,
    >
    > Regards,
    > Walter Rands-Trevor
    >
    >

    Aaron Bertrand [MVP] Guest

  4. #3

    Default Re: 80004005 Error . . .

    The error is stubbornly refusing to show up just at this point in time, but
    from memory I just get a page stating "Provider error '80004005' Uspecified
    Error" followed by the page and line number.

    It always relates to the line in the code that opens the connection to the
    database. I can fix the problem (temporarily) by changing the code to use a
    different type of connection, or if I wait a while (anywhere from 5 mins to
    half an hour) the problem fixes itself. Sooner or later tho, it always
    comes back . . .

    Any thoughts?



    "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    news:#Lm2Jnz$DHA.2336@TK2MSFTNGP11.phx.gbl...
    > There are about 50 80004005 errors. Could you be more specific? Or, see
    > the following:
    >
    > [url]http://www.aspfaq.com/2009[/url]
    > [url]http://www.aspfaq.com/80004005[/url]
    >
    > --
    > Aaron Bertrand
    > SQL Server MVP
    > [url]http://www.aspfaq.com/[/url]
    >
    >
    >
    >
    > "Walter Rands-Trevor" <walter@arknet.co.nz> wrote in message
    > news:uhh#vZy$DHA.2348@TK2MSFTNGP09.phx.gbl...
    > > Hello,
    > >
    > > I am getting the infamous 80004005 (like just about everyone else on the
    > net
    > > it seems). Using NT4/IIS4, Access 97 DB, it is a low volume (20 hits a
    > day)
    > > site that worked perfectly for over a year. Then suddenly, without me
    > > changing any code on the site, it decided to start giving 80004005
    errors.
    > > Basically, in trying to fix this, I have tried several different
    > connections
    > > to the db,
    > >
    > > objConn.ConnectionString = "DSN=Ops"
    > > objConn.Open
    > >
    > > or
    > > objConn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA
    > SOURCE=c:\database.mdb"
    > >
    > > or (had this suggested to me today but it also doesnt work for very
    long)
    > > objConn.Open "Provider=MSDASQL.1;Extended
    > > Properties=""DSN=Ops;FIL=MSAccess;UID="";"";"
    > >
    > > Whichever connection I use, it will work fine for a short period of
    time,
    > > and then stop working again. If I edit the code, and change the
    > connection
    > > to one of the other strings, it will work for a short while, and then
    stop
    > > again. Once one page fails, all pages for all users fail. I have tried
    > > different login names specified in the DSN properties, and in my ASP
    > > connections. All permissions for the IUSR account have been checked and
    > > double checked, I have updated MDAC several times (now up to 2.8), all
    the
    > > patches and updates I can find are loaded onto the server, and virus
    scans
    > > come up clean. I am closing and destroying the connections and
    > recordsets,
    > > and diming the variables. I have run compact and repair on the
    database,
    > > but nothing I do fixes the error for more than half a day. Can anyone
    > > suggest anything?
    > >
    > > Thanks in advance,
    > >
    > > Regards,
    > > Walter Rands-Trevor
    > >
    > >
    >
    >

    Walter Rands-Trevor Guest

  5. #4

    Default Re: 80004005 Error . . .

    > Any thoughts?

    Well, did you bother looking at the two links I posted?

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]


    Aaron Bertrand [MVP] Guest

  6. #5

    Default Re: 80004005 Error . . .

    On Mon, 1 Mar 2004 16:31:22 +1300, "Walter Rands-Trevor"
    <walter@arknet.co.nz> wrote:
    >The error is stubbornly refusing to show up just at this point in time, but
    >from memory I just get a page stating "Provider error '80004005' Uspecified
    >Error" followed by the page and line number.
    >
    >It always relates to the line in the code that opens the connection to the
    >database. I can fix the problem (temporarily) by changing the code to use a
    >different type of connection, or if I wait a while (anywhere from 5 mins to
    >half an hour) the problem fixes itself. Sooner or later tho, it always
    >comes back . . .
    >
    >Any thoughts?
    Wait until it comes back. Then look at the two links posted by AAron
    and do what they say.

    Jeff

    >"Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    >news:#Lm2Jnz$DHA.2336@TK2MSFTNGP11.phx.gbl...
    >> There are about 50 80004005 errors. Could you be more specific? Or, see
    >> the following:
    >>
    >> [url]http://www.aspfaq.com/2009[/url]
    >> [url]http://www.aspfaq.com/80004005[/url]
    >>
    >> --
    >> Aaron Bertrand
    >> SQL Server MVP
    >> [url]http://www.aspfaq.com/[/url]
    >>
    >>
    >>
    >>
    >> "Walter Rands-Trevor" <walter@arknet.co.nz> wrote in message
    >> news:uhh#vZy$DHA.2348@TK2MSFTNGP09.phx.gbl...
    >> > Hello,
    >> >
    >> > I am getting the infamous 80004005 (like just about everyone else on the
    >> net
    >> > it seems). Using NT4/IIS4, Access 97 DB, it is a low volume (20 hits a
    >> day)
    >> > site that worked perfectly for over a year. Then suddenly, without me
    >> > changing any code on the site, it decided to start giving 80004005
    >errors.
    >> > Basically, in trying to fix this, I have tried several different
    >> connections
    >> > to the db,
    >> >
    >> > objConn.ConnectionString = "DSN=Ops"
    >> > objConn.Open
    >> >
    >> > or
    >> > objConn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA
    >> SOURCE=c:\database.mdb"
    >> >
    >> > or (had this suggested to me today but it also doesnt work for very
    >long)
    >> > objConn.Open "Provider=MSDASQL.1;Extended
    >> > Properties=""DSN=Ops;FIL=MSAccess;UID="";"";"
    >> >
    >> > Whichever connection I use, it will work fine for a short period of
    >time,
    >> > and then stop working again. If I edit the code, and change the
    >> connection
    >> > to one of the other strings, it will work for a short while, and then
    >stop
    >> > again. Once one page fails, all pages for all users fail. I have tried
    >> > different login names specified in the DSN properties, and in my ASP
    >> > connections. All permissions for the IUSR account have been checked and
    >> > double checked, I have updated MDAC several times (now up to 2.8), all
    >the
    >> > patches and updates I can find are loaded onto the server, and virus
    >scans
    >> > come up clean. I am closing and destroying the connections and
    >> recordsets,
    >> > and diming the variables. I have run compact and repair on the
    >database,
    >> > but nothing I do fixes the error for more than half a day. Can anyone
    >> > suggest anything?
    >> >
    >> > Thanks in advance,
    >> >
    >> > Regards,
    >> > Walter Rands-Trevor
    >> >
    >> >
    >>
    >>
    >
    Jeff Cochran Guest

  7. #6

    Default Re: 80004005 Error . . .

    Walter Rands-Trevor wrote:
    > Hello,
    >
    > I am getting the infamous 80004005 (like just about everyone else on
    > the net it seems). Using NT4/IIS4, Access 97 DB, it is a low volume
    > (20 hits a day) site that worked perfectly for over a year. Then
    > suddenly, without me changing any code on the site, it decided to
    > start giving 80004005 errors. Basically, in trying to fix this, I
    > have tried several different connections to the db,
    >
    > objConn.ConnectionString = "DSN=Ops"
    > objConn.Open
    >
    > or
    > objConn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA
    > SOURCE=c:\database.mdb"
    >
    > or (had this suggested to me today but it also doesnt work for very
    > long) objConn.Open "Provider=MSDASQL.1;Extended
    > Properties=""DSN=Ops;FIL=MSAccess;UID="";"";"
    >
    > Whichever connection I use, it will work fine for a short period of
    > time, and then stop working again. If I edit the code, and change
    > the connection to one of the other strings, it will work for a short
    > while, and then stop again. Once one page fails, all pages for all
    > users fail. I have tried different login names specified in the DSN
    > properties, and in my ASP connections. All permissions for the IUSR
    > account have been checked and double checked, I have updated MDAC
    > several times (now up to 2.8), all the patches and updates I can find
    > are loaded onto the server, and virus scans come up clean. I am
    > closing and destroying the connections and recordsets, and diming the
    > variables. I have run compact and repair on the database, but
    > nothing I do fixes the error for more than half a day. Can anyone
    > suggest anything?
    >
    > Thanks in advance,
    >
    > Regards,
    > Walter Rands-Trevor
    Do you have an automatic repair/compact process running on your database? I
    have seen situations where the compacting process has resulted in a new mdb
    file without the NTFS permissions that were in place for the original file.

    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

  8. #7

    Default Re: 80004005 Error . . .

    Hi Bob,

    Thanks for the suggestion, but no automatic process on it. Have struck the
    odd problem with running compact and repair in the past, so now I always
    manually back up the db, run the process myself and double check everything
    .. . . call me paranoid ;-)

    - Walter


    "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:ey9Xf24$DHA.624@TK2MSFTNGP11.phx.gbl...
    > Walter Rands-Trevor wrote:
    > > Hello,
    > >
    > > I am getting the infamous 80004005 (like just about everyone else on
    > > the net it seems). Using NT4/IIS4, Access 97 DB, it is a low volume
    > > (20 hits a day) site that worked perfectly for over a year. Then
    > > suddenly, without me changing any code on the site, it decided to
    > > start giving 80004005 errors. Basically, in trying to fix this, I
    > > have tried several different connections to the db,
    > >
    > > objConn.ConnectionString = "DSN=Ops"
    > > objConn.Open
    > >
    > > or
    > > objConn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA
    > > SOURCE=c:\database.mdb"
    > >
    > > or (had this suggested to me today but it also doesnt work for very
    > > long) objConn.Open "Provider=MSDASQL.1;Extended
    > > Properties=""DSN=Ops;FIL=MSAccess;UID="";"";"
    > >
    > > Whichever connection I use, it will work fine for a short period of
    > > time, and then stop working again. If I edit the code, and change
    > > the connection to one of the other strings, it will work for a short
    > > while, and then stop again. Once one page fails, all pages for all
    > > users fail. I have tried different login names specified in the DSN
    > > properties, and in my ASP connections. All permissions for the IUSR
    > > account have been checked and double checked, I have updated MDAC
    > > several times (now up to 2.8), all the patches and updates I can find
    > > are loaded onto the server, and virus scans come up clean. I am
    > > closing and destroying the connections and recordsets, and diming the
    > > variables. I have run compact and repair on the database, but
    > > nothing I do fixes the error for more than half a day. Can anyone
    > > suggest anything?
    > >
    > > Thanks in advance,
    > >
    > > Regards,
    > > Walter Rands-Trevor
    >
    > Do you have an automatic repair/compact process running on your database?
    I
    > have seen situations where the compacting process has resulted in a new
    mdb
    > file without the NTFS permissions that were in place for the original
    file.
    >
    > Bob Barrows
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >

    Walter Rands-Trevor Guest

  9. #8

    Default Re: 80004005 Error . . .

    Aaron (and Jeff)

    Thanks for your input, I have been working through those pages and their
    suggestions to see which ones apply to my circumstances, however, the error
    is not currently appearing (murphy's law I guess) so at this point I am
    making notes and looking for suggestions as I want to see the effect of each
    suggestion as I try it. Unfortunately, as you can see in the list of things
    that I outlined in my original post, most of the things in those pages I
    have already tried, however, two that are interesting are setting the ("JET
    OLEDB:Max Locks Per File") property of the connection and running the server
    in a seperate memory process.

    Firstly, my largest table has around 13,000 records in it, would this be
    considered a large amount in Access, and should I try setting the max locks
    to 26,000?

    Secondly, I have tried setting the site to run in its own memory process in
    the past, and it caused permissions errors in the form of:

    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine
    cannot open the file '(unknown)'. It is already opened exclusively by
    another user, or you need permission to view its data.

    Does this mean that if you run it in a seperate process that it uses
    different credentials? If so, how do you find out what these are, so I can
    set permissions on the file? As soon as I return the site to the main pool,
    this message clears up. As a point of interest (dont know if this has an
    effect or not) the site is using anonymous access.

    Thanks for your help and advice,

    - Walter



    "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    news:eOimI40$DHA.1548@TK2MSFTNGP12.phx.gbl...
    > > Any thoughts?
    >
    > Well, did you bother looking at the two links I posted?
    >
    > --
    > Aaron Bertrand
    > SQL Server MVP
    > [url]http://www.aspfaq.com/[/url]
    >
    >

    Walter Rands-Trevor Guest

  10. #9

    Default Re: 80004005 Error . . .

    Walter Rands-Trevor wrote:
    > Firstly, my largest table has around 13,000 records in it, would this
    > be considered a large amount in Access, and should I try setting the
    > max locks to 26,000?
    No - that's a relatively small table
    >
    > Secondly, I have tried setting the site to run in its own memory
    > process in the past, and it caused permissions errors in the form of:
    >
    > Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    > [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database
    > engine cannot open the file '(unknown)'. It is already opened
    > exclusively by another user, or you need permission to view its data.
    This is always due to a lack of permissions. If you are using anonymous
    security, the IUSR account needs Change permissions on the entire folder
    containing the database file - not just the file. The user needs to be able
    to create, modify, and delete the ldb locking file.

    If you are using Integrated security (NT Challenge or Windows
    authentication), then all users of the database need Change permissions for
    the folder - not just the database.

    When running in its own memory process, the IWAM account is the user, not
    the IUSR account, so you need to give the IWAM account permissions for that
    folder.

    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

  11. #10

    Default Re: 80004005 Error . . .

    Thank you Bob, I think you may have hit the nail on the head. The error
    popped up again, so I have set the permissions on the file and folder to
    allow the IWAM account change permissions (previously only had the IUSR
    account in the ACL) and now the site is happily running in its own process.
    Site is back up now, will be in touch if I get further errors, but thanks
    for your help!

    - Walter Rands-Trevor


    "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:OW4L9#8$DHA.4080@TK2MSFTNGP09.phx.gbl...
    > Walter Rands-Trevor wrote:
    > > Firstly, my largest table has around 13,000 records in it, would this
    > > be considered a large amount in Access, and should I try setting the
    > > max locks to 26,000?
    >
    > No - that's a relatively small table
    > >
    > > Secondly, I have tried setting the site to run in its own memory
    > > process in the past, and it caused permissions errors in the form of:
    > >
    > > Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    > > [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database
    > > engine cannot open the file '(unknown)'. It is already opened
    > > exclusively by another user, or you need permission to view its data.
    >
    > This is always due to a lack of permissions. If you are using anonymous
    > security, the IUSR account needs Change permissions on the entire folder
    > containing the database file - not just the file. The user needs to be
    able
    > to create, modify, and delete the ldb locking file.
    >
    > If you are using Integrated security (NT Challenge or Windows
    > authentication), then all users of the database need Change permissions
    for
    > the folder - not just the database.
    >
    > When running in its own memory process, the IWAM account is the user, not
    > the IUSR account, so you need to give the IWAM account permissions for
    that
    > folder.
    >
    > Bob Barrows
    > --
    > Microsoft MVP -- ASP/ASP.NET
    > Please reply to the newsgroup. The email account listed in my From
    > header is my spam trap, so I don't check it very often. You will get a
    > quicker response by posting to the newsgroup.
    >
    >

    Walter Rands-Trevor Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139