Error 500 on second Open to Access Database

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

  1. #1

    Default Error 500 on second Open to Access Database

    Using ASP under IIS (Win2k3 Server), latest patches.

    I have an simple page that accesses an Access database via a system
    DSN. The first Open works fine, but each subsequent time (page
    reload, relogin, etc) I get either an Error 500 (HTTP error) or an ASP
    "Unspecified error" message on the Open line.
    * The IUSR account has Full Privs to the directory containing the
    Access database
    * the IUSR account has Full Privs to the database itself
    * Even tried giving full access to the IWAM account, but that didn't
    matter
    * Am setting the objConnection.Mode property to 3 (adModeReadWrite)

    Problem goes away after the database has a minute or two to
    (apparently) unlock something, I guess: as soon as I do another Open
    it works, but then stops working again until I let it sit. Privs are
    fine, but I know I've had this problem before and resolved it on other
    sites.

    Thoughts? And yes, I've been to ASPFAQ.com; couldn't find anything
    that helped.

    Jack
    SteveB Guest

  2. Similar Questions and Discussions

    1. Access database error
      I'm trying to add an Access data source in coldfusion following step for step a guide from lynda.com. When I try to submit, this is what I get: ...
    2. Insert to Access database error*** Please Help
      When trying to insert into access database with a form created by the standard MX2004 Insert and form wizard, get the "Syntax " error as below. Line...
    3. Database access error. Please help!
      I finially manages to get my Access database to connect with Coldfusion, however when i run a simple 'Select * from ' statement, i get this error. ...
    4. Problem connecting to local Access database - Unable to open registry key 'Temporary (volatile) Jet DSN ...
      Hi I get the following error sporadically when running a sample in an MSDN ASP tutorial: Microsoft OLE DB Provider for ODBC Drivers: General...
    5. database open Error -761 : INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES.
      Hello I have the following problem. Due an old program limitation the size of the servername can no be larger than 6 characters in the client and...
  3. #2

    Default Re: Error 500 on second Open to Access Database

    Hi,

    a) Please uncheck "Show Friendly HTTP Errors" in your copy of Internet
    Explorer (Tools -> Options -> Advanced)
    b) Reload the page and post the exact error message you are seeing.

    Also, you need to make sure you are explicitly closing your ADO connection
    objects - so that they are returned to the ODBC Connection pool. If you are
    implicitly creating connection objects (by using Recordset.Open
    <connectionString>) you should adjust your code so that you explicitly
    create a connection object and use that when opening your recordset.

    Cheers
    Ken


    "SteveB" <mcse4cash@hotmail.com> wrote in message
    news:6b35f956.0406132019.3e7b344b@posting.google.c om...
    : Using ASP under IIS (Win2k3 Server), latest patches.
    :
    : I have an simple page that accesses an Access database via a system
    : DSN. The first Open works fine, but each subsequent time (page
    : reload, relogin, etc) I get either an Error 500 (HTTP error) or an ASP
    : "Unspecified error" message on the Open line.
    : * The IUSR account has Full Privs to the directory containing the
    : Access database
    : * the IUSR account has Full Privs to the database itself
    : * Even tried giving full access to the IWAM account, but that didn't
    : matter
    : * Am setting the objConnection.Mode property to 3 (adModeReadWrite)
    :
    : Problem goes away after the database has a minute or two to
    : (apparently) unlock something, I guess: as soon as I do another Open
    : it works, but then stops working again until I let it sit. Privs are
    : fine, but I know I've had this problem before and resolved it on other
    : sites.
    :
    : Thoughts? And yes, I've been to ASPFAQ.com; couldn't find anything
    : that helped.
    :
    : Jack


    Ken Schaefer 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