Error while trying to connect to Access database within ASP

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

  1. #1

    Default Error while trying to connect to Access database within ASP

    I am getting an error message while trying to connect to an Access database
    within ASP. This error only occurs on my notebook computer and not on my
    desktop computer. I am running from within the same environment. That is,
    the same versions of Access and IIS. If anyone could help me I would really
    appreciate it because I enjoy having the ability to develop from my
    notebook.

    The error message is:

    The page cannot be displayed

    There is a problem with the page you are trying to reach and it cannot
    be displayed.


    --------------------------------------------------------------------------

    Please try the following:

    a.. Click the Refresh button, or try again later.
    b.. Open the localhost home page, and then look for links to the
    information you want.
    HTTP 500.100 - Internal Server Error - ASP error
    Internet Information Services

    --------------------------------------------------------------------------

    Technical Information (for support personnel)

    a.. Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC Microsoft Access Driver]General error Unable to
    open registry key 'Temporary (volatile) Jet DSN for process 0x10c Thread
    0x4bc DBC 0x109a024 Jet'.
    /wcg/games.asp, line 336
    b.. Browser Type:
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    c.. Page:
    GET /wcg/games.asp
    d.. Time:
    Wednesday, December 03, 2003, 7:31:10 PM
    e.. More information:
    Microsoft Support



    Thanks



    Terry


    Terry Murray Guest

  2. Similar Questions and Discussions

    1. Connect to a MS Access or MS SQL Server database
      How can i connect and perform select, insert, update and delete commands to an Access or SQL Server database without using ODBC DSNs?
    2. Connect to an Access database using DSN (in PHP)
      Hi all I'm wondering connect a Access db as easy as to a MySQL, using Windows|Database|Add connection. But this seems not working. I'm...
    3. help! i can't connect to my Access database.
      I have been trying to set up my Microsoft Access database as a datasource (locally on my computer). I've given it a data source name, and...
    4. How to use “RDS.Connect” to connect to a MS Access database?
      The example I am working from uses the following code which does not work: RDS.Connect = "Provider='sqloledb';Integrated Security='SSPI';Initial ...
    5. how can i connect with an access database
      i need to work with an mdb file which contains a lot of data that might be change a lot of times and must stay an mdb file (so i cant make this file...
  3. #2

    Default Re: Error while trying to connect to Access database within ASP

    This is most likely caused by your IUSR account not having write/modify
    permissions on the %temp% directory. You can avoid this by changing your
    connection to an OLEDB connection instead of the old technology ODBC. Get
    your OLEDB connection string for Access at [url]www.connectionstrings.com[/url].

    Ray at work

    "Terry Murray" <tgmurray@rogers.com> wrote in message
    news:sBqBb.23192$r%u1.6648@twister01.bloor.is.net. cable.rogers.com...
    > I am getting an error message while trying to connect to an Access
    database
    > within ASP. This error only occurs on my notebook computer and not on my
    > desktop computer. I am running from within the same environment. That is,
    > the same versions of Access and IIS. If anyone could help me I would
    really
    > appreciate it because I enjoy having the ability to develop from my
    > notebook.
    >
    > The error message is:
    >
    > The page cannot be displayed
    >
    > There is a problem with the page you are trying to reach and it
    cannot
    > be displayed.
    >
    >
    > --------------------------------------------------------------------------
    >
    > Please try the following:
    >
    > a.. Click the Refresh button, or try again later.
    > b.. Open the localhost home page, and then look for links to the
    > information you want.
    > HTTP 500.100 - Internal Server Error - ASP error
    > Internet Information Services
    >
    > --------------------------------------------------------------------------
    >
    > Technical Information (for support personnel)
    >
    > a.. Error Type:
    > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    > [Microsoft][ODBC Microsoft Access Driver]General error Unable to
    > open registry key 'Temporary (volatile) Jet DSN for process 0x10c Thread
    > 0x4bc DBC 0x109a024 Jet'.
    > /wcg/games.asp, line 336
    > b.. Browser Type:
    > Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    > c.. Page:
    > GET /wcg/games.asp
    > d.. Time:
    > Wednesday, December 03, 2003, 7:31:10 PM
    > e.. More information:
    > Microsoft Support
    >
    >
    >
    > Thanks
    >
    >
    >
    > Terry
    >
    >

    Ray at Guest

  4. #3

    Default Re: Error while trying to connect to Access database within ASP

    [url]http://www.aspfaq.com/2154[/url]

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




    "Terry Murray" <tgmurray@rogers.com> wrote in message
    news:sBqBb.23192$r%u1.6648@twister01.bloor.is.net. cable.rogers.com...
    > I am getting an error message while trying to connect to an Access
    database
    > within ASP. This error only occurs on my notebook computer and not on my
    > desktop computer. I am running from within the same environment. That is,
    > the same versions of Access and IIS. If anyone could help me I would
    really
    > appreciate it because I enjoy having the ability to develop from my
    > notebook.
    >
    > The error message is:
    >
    > The page cannot be displayed
    >
    > There is a problem with the page you are trying to reach and it
    cannot
    > be displayed.
    >
    >
    > --------------------------------------------------------------------------
    >
    > Please try the following:
    >
    > a.. Click the Refresh button, or try again later.
    > b.. Open the localhost home page, and then look for links to the
    > information you want.
    > HTTP 500.100 - Internal Server Error - ASP error
    > Internet Information Services
    >
    > --------------------------------------------------------------------------
    >
    > Technical Information (for support personnel)
    >
    > a.. Error Type:
    > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    > [Microsoft][ODBC Microsoft Access Driver]General error Unable to
    > open registry key 'Temporary (volatile) Jet DSN for process 0x10c Thread
    > 0x4bc DBC 0x109a024 Jet'.
    > /wcg/games.asp, line 336
    > b.. Browser Type:
    > Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    > c.. Page:
    > GET /wcg/games.asp
    > d.. Time:
    > Wednesday, December 03, 2003, 7:31:10 PM
    > e.. More information:
    > Microsoft Support
    >
    >
    >
    > Thanks
    >
    >
    >
    > Terry
    >
    >

    Aaron Bertrand - MVP Guest

  5. #4

    Default Re: Error while trying to connect to Access database within ASP

    Thanks for the quick response Ray. I have not tried what you suggested yet
    but I thought that I should also let you know that the error goes away
    temporarily if I reboot. Eventually, though, it rears its ugly head again.
    If I understand you correctly all I have to do is use connection code
    similar to this:

    <%
    cst = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    cst = cst & server.mappath("/<pathtofile.mdb>")
    set conn = Server.CreateObject("ADODB.Connection")
    conn.open cst
    %>

    I imagine that I still require an ODBC Dsn. In the past I was choosing to
    use a file DSN.

    Thanks again
    Terry

    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:eknYHbpvDHA.3416@tk2msftngp13.phx.gbl...
    > This is most likely caused by your IUSR account not having write/modify
    > permissions on the %temp% directory. You can avoid this by changing your
    > connection to an OLEDB connection instead of the old technology ODBC. Get
    > your OLEDB connection string for Access at [url]www.connectionstrings.com[/url].
    >
    > Ray at work
    >
    > "Terry Murray" <tgmurray@rogers.com> wrote in message
    > news:sBqBb.23192$r%u1.6648@twister01.bloor.is.net. cable.rogers.com...
    > > I am getting an error message while trying to connect to an Access
    > database
    > > within ASP. This error only occurs on my notebook computer and not on my
    > > desktop computer. I am running from within the same environment. That
    is,
    > > the same versions of Access and IIS. If anyone could help me I would
    > really
    > > appreciate it because I enjoy having the ability to develop from my
    > > notebook.
    > >
    > > The error message is:
    > >
    > > The page cannot be displayed
    > >
    > > There is a problem with the page you are trying to reach and it
    > cannot
    > > be displayed.
    > >
    > >
    >
    > --------------------------------------------------------------------------
    > >
    > > Please try the following:
    > >
    > > a.. Click the Refresh button, or try again later.
    > > b.. Open the localhost home page, and then look for links to the
    > > information you want.
    > > HTTP 500.100 - Internal Server Error - ASP error
    > > Internet Information Services
    > >
    >
    > --------------------------------------------------------------------------
    > >
    > > Technical Information (for support personnel)
    > >
    > > a.. Error Type:
    > > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    > > [Microsoft][ODBC Microsoft Access Driver]General error Unable to
    > > open registry key 'Temporary (volatile) Jet DSN for process 0x10c Thread
    > > 0x4bc DBC 0x109a024 Jet'.
    > > /wcg/games.asp, line 336
    > > b.. Browser Type:
    > > Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    > > c.. Page:
    > > GET /wcg/games.asp
    > > d.. Time:
    > > Wednesday, December 03, 2003, 7:31:10 PM
    > > e.. More information:
    > > Microsoft Support
    > >
    > >
    > >
    > > Thanks
    > >
    > >
    > >
    > > Terry
    > >
    > >
    >
    >

    Terry Murray Guest

  6. #5

    Default Re: Error while trying to connect to Access database within ASP

    > <%
    > cst = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    > cst = cst & server.mappath("/<pathtofile.mdb>")
    > set conn = Server.CreateObject("ADODB.Connection")
    > conn.open cst
    > %>
    >
    > I imagine that I still require an ODBC Dsn. In the past I was choosing to
    > use a file DSN.
    No, the whole point of using the connection string above is to avoid ODBC
    and DSNs altogether.

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


    Aaron Bertrand - MVP 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