IIS on XP Pro Acting Flakey

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

  1. #1

    Default Re: IIS on XP Pro Acting Flakey

    <What I think the problem is />
    You are opening an implicit ADODB.Connection object. Since you have no
    handle to this object, you can't dipose of it. Since Access isn't designed
    as a multi-user DBMS, you run into problems when you want to access the DB
    using another connection.

    What you should do:

    <%
    Set objConn = Server.CreateObject("ADODB.Connection")
    objConn.Open "DSN=cigars"

    Set objRS = Server.CreateObject("ADODB.Recordset")
    objRS.Open "qryNumberOfCigarsByCountry", objConn

    ' Do all your existing stuff here

    objRS.Close
    Set objRS = Nothing

    objConn.Close
    Set objConn = Nothing
    %>

    [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;191572[/url]
    191572 - INFO Connection Pool Management by ADO Objects Called From ASP

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmdac/html/pooling2.asp[/url]
    Pooling in the Microsoft Data Access Components

    Also, use the native OLEDB Provider if you can:
    [url]www.adopenstatic.com/faq/whyOLEDB.asp[/url]

    Cheers
    Ken


    "Jeff Patton" <jeffpatton@cox.net> wrote in message
    news:0b7301c36bd4$95989730$a501280a@phx.gbl...
    : i am running XPPro with IIS to develop asp pages. i am
    : running into a very unusual problem. firstly i have all
    : the latest updates from windowsupdate, are there other
    : specifically for IIS that i should be aware of? secondly
    : this is a fairly straightforward page that i have tried
    : doing about three different ways with the same results
    : everytime.
    :
    : the page loads the data from the database is displayed
    : when i hit refresh on the browser i get an error message
    : that basically says unspecified error on line 14, which
    : is where my DNS connection is.
    :
    : i have a simple table called tblCigars that has a list of
    : cigars that i like, i created a
    : query "qryNumberOfCigarsByCountry" that displays the
    : number of cigars from each country. this was all done
    : within AccessXP the DB is in Access2K format. all queries
    : work within access, and like i said they even work on
    : occasion on the webpage returning the correct
    : information.
    :
    : sometimes if i hit refresh enough the data comes back.
    : but its not consistent, once it was refresh 3 times, then
    : 20, then 17.


    Ken Schaefer Guest

  2. Similar Questions and Discussions

    1. DES acting strange
      I use the DES_ENCRYPT and DES_DECRYPT with the string 'sfG3853ncr1pt' I can't seem to encrypt the number 227968199 because I tried several times...
    2. fonts acting up
      Hi, I looked in the FAQ, the knowledge base and previous posts but couldn't find an answer for this... I'm trying to open a PDF in CS (on W2K). The...
    3. Is it me of DWMX FTP a bit flakey?
      Hi Guys I have real trouble trying to keep a vaild connection with my web servers and in particular, it seems to suffer from a complete lockup when...
    4. flakey looking table
      Hi! I've got a homepage that looks fine when displayed locally or on the Web. When I preview it in Dreamweaver MX, the table looks mal-formed, and...
    5. trash acting up
      I don't know what caused it but when ever I drag something to the trash can I get a window that says this will delete this file immediately, is...
  3. #2

    Default Re: IIS on XP Pro Acting Flakey

    Get rid of the DSN. Use a DSN-Less connection.


    --

    Phillip Windell [CCNA, MVP, MCP]
    [email]pwindell@wandtv.com[/email]
    WAND-TV (ABC Affiliate)
    [url]www.wandtv.com[/url]

    "Jeff Patton" <jeffpatton@cox.net> wrote in message
    news:0c3c01c36bdc$4321c690$a601280a@phx.gbl...
    > ok i tried what you ask and i still get the same problem
    > except the error has moved down...i haven't tried the
    > native stuff yet i was just headed out when u sent this.
    > i will do the native provider when i get back.
    >
    > thanks!
    >
    > >-----Original Message-----
    > ><What I think the problem is />
    > >You are opening an implicit ADODB.Connection object.
    > Since you have no
    > >handle to this object, you can't dipose of it. Since
    > Access isn't designed
    > >as a multi-user DBMS, you run into problems when you
    > want to access the DB
    > >using another connection.
    > >
    > >What you should do:
    > >
    > ><%
    > >Set objConn = Server.CreateObject("ADODB.Connection")
    > >objConn.Open "DSN=cigars"
    > >
    > >Set objRS = Server.CreateObject("ADODB.Recordset")
    > >objRS.Open "qryNumberOfCigarsByCountry", objConn
    > >
    > >' Do all your existing stuff here
    > >
    > >objRS.Close
    > >Set objRS = Nothing
    > >
    > >objConn.Close
    > >Set objConn = Nothing
    > >%>
    > >
    > >[url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]
    > US;191572
    > >191572 - INFO Connection Pool Management by ADO Objects
    > Called From ASP
    > >
    > >[url]http://msdn.microsoft.com/library/default.asp?[/url]
    > url=/library/en-us/dnmdac/html/pooling2.asp
    > >Pooling in the Microsoft Data Access Components
    > >
    > >Also, use the native OLEDB Provider if you can:
    > >[url]www.adopenstatic.com/faq/whyOLEDB.asp[/url]
    > >
    > >Cheers
    > >Ken
    > >
    > >
    > >"Jeff Patton" <jeffpatton@cox.net> wrote in message
    > >news:0b7301c36bd4$95989730$a501280a@phx.gbl...
    > >: i am running XPPro with IIS to develop asp pages. i am
    > >: running into a very unusual problem. firstly i have all
    > >: the latest updates from windowsupdate, are there other
    > >: specifically for IIS that i should be aware of?
    > secondly
    > >: this is a fairly straightforward page that i have tried
    > >: doing about three different ways with the same results
    > >: everytime.
    > >:
    > >: the page loads the data from the database is displayed
    > >: when i hit refresh on the browser i get an error
    > message
    > >: that basically says unspecified error on line 14, which
    > >: is where my DNS connection is.
    > >:
    > >: i have a simple table called tblCigars that has a list
    > of
    > >: cigars that i like, i created a
    > >: query "qryNumberOfCigarsByCountry" that displays the
    > >: number of cigars from each country. this was all done
    > >: within AccessXP the DB is in Access2K format. all
    > queries
    > >: work within access, and like i said they even work on
    > >: occasion on the webpage returning the correct
    > >: information.
    > >:
    > >: sometimes if i hit refresh enough the data comes back.
    > >: but its not consistent, once it was refresh 3 times,
    > then
    > >: 20, then 17.
    > >
    > >
    > >.
    > >

    Phillip Windell 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