HELP! Recordsets problem with IIS 6.0

Ask a Question related to ASP, Design and Development.

  1. #1

    Default HELP! Recordsets problem with IIS 6.0

    I have a problem. When I had IIS 5.1 my Dreamweaver MX created
    ADODB.Recordset objects for my ASP pages. Everything worked great. But now
    it causes HTTP500 - Internal Server Error. What's up?


    sKodi Guest

  2. Similar Questions and Discussions

    1. ASP Recordsets
      Hi there, i'm developing an ASP SQL application, and was just wondering whether for some reason this limited me to one recordset per page. the...
    2. Problem filtering Data through Multiple Recordsets
      Hello, I am currently working on a profile page that users will go to once they log in to our website. The profile page will show the users contact...
    3. Persisted XML Recordsets - Disconnected Recordsets - problems
      I have a recordset, client side .ASP that I save as a DOM. I pass to a server side .ASP to reconnect the recordset and update. I keep getting an...
    4. asp web page problem, two recordsets
      oh, ok Thanks, i just thought it would be a bit sloppy to paste a whole page of code, so i am trying to create a page, and then paste the code in...
    5. generating recordsets
      50k records should load almost instantaneously if the form is based on a single table, and there are indexes on the appropriate fields for selecting...
  3. #2

    Default Re: HELP! Recordsets problem with IIS 6.0

    In Internet Explorer, goto tools -> internet options -> advanced, and
    uncheck "Show Friendly HTTP Errors" nd reload the page. Post the complete
    error message to the group.

    Cheers
    Ken

    "sKodi" <skodi@pisem.net> wrote in message news:bdtlql$6mn$1@news.rol.ru...
    : I have a problem. When I had IIS 5.1 my Dreamweaver MX created
    : ADODB.Recordset objects for my ASP pages. Everything worked great. But now
    : it causes HTTP500 - Internal Server Error. What's up?
    :
    :


    Ken Schaefer Guest

  4. #3

    Default Re: HELP! Recordsets problem with IIS 6.0

    > it causes HTTP500 - Internal Server Error. What's up?

    Tell us what the error really is.
    [url]www.aspfaq.com/2109[/url]


    Aaron Bertrand [MVP] Guest

  5. #4

    Default Re: HELP! Recordsets problem with IIS 6.0

    Here is the error message:

    --------------------------------------------------
    Microsoft JET Database Engine error '80004005'
    Could not find file 'C:\WINDOWS\system32\websitesskodidata.mdb'.

    /TMP3tq47hehzc.asp, line 5
    -----------------------------------------------------

    Here is the source of sample file (TMP3tq47hehzc.asp), I've added some
    comments to the lines:


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

    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1251"%> //start of the file, defining
    ASP language and codepage
    <%
    // FileName="Connection_ado_conn_string.htm"
    //comment of DreamWeaver MX
    // Type="ADO"
    //comment of DreamWeaver MX
    // DesigntimeType="ADO"
    //comment of DreamWeaver MX
    // HTTP="false"
    //comment of DreamWeaver MX
    // Catalog=""
    //comment of DreamWeaver MX
    // Schema=""
    //comment of DreamWeaver MX
    var MM_main_STRING = "Provider=Microsoft.Jet.OLEDB.4.0; Data
    Source=C:/websites/skodi/data.mdb" //connection string
    %>
    <%
    var Recordset1 = Server.CreateObject("ADODB.Recordset");
    //creating of recordset
    Recordset1.ActiveConnection = MM_main_STRING;
    //connection
    Recordset1.Source = "SELECT * FROM global_variables";
    //query
    Recordset1.CursorType = 0;
    Recordset1.CursorLocation = 2;
    Recordset1.LockType = 1;
    Recordset1.Open();
    //opening recordset
    var Recordset1_numRows = 0;
    %>
    <html>
    <head>
    <title>Sample Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
    </head>

    <body>
    </body>
    </html>
    <%
    Recordset1.Close();
    %>
    ----------------------------------------------------------------------


    sKodi Guest

  6. #5

    Default Re: HELP! Recordsets problem with IIS 6.0

    > Source=C:/websites/skodi/data.mdb"

    These should be \ slashes, not / slashes.

    Or, better yet, use server.mappath so that you are not affected by changes
    to the local filesystem.


    Aaron Bertrand - MVP Guest

  7. #6

    Default Re: HELP! Recordsets problem with IIS 6.0

    No, there must be backslashes. It worked well on IIS 5.0 and IIS 5.1 .
    However, I've solved this problem myself now. Thanks to Ken Shaefer for his
    advice about IE.


    sKodi 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