ADOVBS processing error

Discussion in 'ASP General' started by Bob Barrows [MVP], Apr 23, 2008.

  1. Neil Gould wrote:
    > Hi,
    >
    > In debugging an ASP script, I receive the error message:
    > --------------------------------------------------------
    > Microsoft VBScript compilation error '800a0411'
    >
    > Name redefined
    >
    > /test/config/include/ADOVBS.INC, line 14
    >
    > Const adOpenForwardOnly = 0
    > -------^
    >
    >
    > What is redefining the Name?
    >
    > Is there some place to clarify such error messages?
    >
    > TIA
    >

    Create a new asp page, put this code into it and run it:

    <%
    Const adOpenForwardOnly = 0
    Const adOpenForwardOnly = 0
    %>

    What error do you get? Does this perhaps provide a clue as to what is
    going on in the page you are having a problem with?

    In case you need to be beaten with a clue-stick: look for another place
    in your code where you (or whoever wrote the code) defined that
    constant.

    --
    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], Apr 23, 2008
    #1
    1. Advertising

  2. Bob Barrows [MVP]

    Neil Gould Guest

    Hi,

    In debugging an ASP script, I receive the error message:
    --------------------------------------------------------
    Microsoft VBScript compilation error '800a0411'

    Name redefined

    /test/config/include/ADOVBS.INC, line 14

    Const adOpenForwardOnly = 0
    -------^


    What is redefining the Name?

    Is there some place to clarify such error messages?

    TIA

    Neil
     
    Neil Gould, Apr 23, 2008
    #2
    1. Advertising

  3. Neil Gould wrote:
    > Hi,
    >
    > In debugging an ASP script, I receive the error message:
    > --------------------------------------------------------
    > Microsoft VBScript compilation error '800a0411'
    >
    > Name redefined
    >
    > /test/config/include/ADOVBS.INC, line 14
    >
    > Const adOpenForwardOnly = 0
    > -------^
    >
    >
    > What is redefining the Name?
    >
    > Is there some place to clarify such error messages?


    If you have any of the following lines in your global.asa file, you will get
    such a message upon including ADOVBS.INC:

    <!-- METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4"
    NAME="Microsoft ActiveX Data Objects 2.5 Library" -->
    <!-- METADATA TYPE="typelib" UUID="00000206-0000-0010-8000-00AA006D2EA4"
    NAME="Microsoft ActiveX Data Objects 2.6 Library" -->
    <!-- METADATA TYPE="typelib" UUID="EF53050B-882E-4776-B643-EDA472E8E3F2"
    NAME="Microsoft ActiveX Data Objects 2.7 Library" -->
    <!-- METADATA TYPE="typelib" UUID="2A75196C-D9EB-4129-B803-931327F72D5C"
    NAME="Microsoft ActiveX Data Objects 2.8 Library" -->




    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use
    of this email address implies consent to these terms.
     
    Dave Anderson, Apr 23, 2008
    #3
  4. Bob Barrows [MVP]

    Neil Gould Guest

    Recently, McKirahan <> posted:

    > "Neil Gould" <> wrote in message
    > news:#...
    >> Hi,
    >>
    >> In debugging an ASP script, I receive the error message:
    >> --------------------------------------------------------
    >> Microsoft VBScript compilation error '800a0411'
    >>
    >> Name redefined
    >>
    >> /test/config/include/ADOVBS.INC, line 14
    >>
    >> Const adOpenForwardOnly = 0
    >> -------^
    >>
    >>
    >> What is redefining the Name?
    >>
    >> Is there some place to clarify such error messages?

    >

    [..]
    >
    > Did you include the file twice?
    >

    Thanks. This was the problem, though not immediately obvious; ADOVBS.INC
    was included in a file that was included in another .ASP script.

    Best,

    Neil
     
    Neil Gould, Apr 23, 2008
    #4
  5. Bob Barrows [MVP]

    Neil Gould Guest

    Recently, Bob Barrows [MVP] <> posted:
    >>

    > Create a new asp page, put this code into it and run it:
    >
    > <%
    > Const adOpenForwardOnly = 0
    > Const adOpenForwardOnly = 0
    > %>
    >
    > What error do you get? Does this perhaps provide a clue as to what is
    > going on in the page you are having a problem with?
    >
    > In case you need to be beaten with a clue-stick: look for another
    > place in your code where you (or whoever wrote the code) defined that
    > constant.
    >

    That would be obvious, and easy to track down. But, as I didn't write
    ADOVBS.INC, the problem wasn't as obvious as that. McKirahan got it right.

    Neil
     
    Neil Gould, Apr 23, 2008
    #5
  6. Bob Barrows [MVP]

    Neil Gould Guest

    Recently, Dave Anderson <> posted:

    > Neil Gould wrote:
    >> Hi,
    >>
    >> In debugging an ASP script, I receive the error message:
    >> --------------------------------------------------------
    >> Microsoft VBScript compilation error '800a0411'
    >>
    >> Name redefined
    >>
    >> /test/config/include/ADOVBS.INC, line 14
    >>
    >> Const adOpenForwardOnly = 0
    >> -------^
    >>
    >>
    >> What is redefining the Name?
    >>
    >> Is there some place to clarify such error messages?

    >
    > If you have any of the following lines in your global.asa file, you
    > will get such a message upon including ADOVBS.INC:
    >
    > <!-- METADATA TYPE="typelib"
    > UUID="00000205-0000-0010-8000-00AA006D2EA4" NAME="Microsoft ActiveX
    > Data Objects 2.5 Library" --> <!-- METADATA TYPE="typelib"
    > UUID="00000206-0000-0010-8000-00AA006D2EA4" NAME="Microsoft ActiveX
    > Data Objects 2.6 Library" --> <!-- METADATA TYPE="typelib"
    > UUID="EF53050B-882E-4776-B643-EDA472E8E3F2" NAME="Microsoft ActiveX
    > Data Objects 2.7 Library" --> <!-- METADATA TYPE="typelib"
    > UUID="2A75196C-D9EB-4129-B803-931327F72D5C" NAME="Microsoft ActiveX
    > Data Objects 2.8 Library" -->
    >

    Thanks, Dave. I'll keep this in mind.

    Neil
     
    Neil Gould, Apr 23, 2008
    #6
  7. Neil Gould wrote:
    > Recently, Bob Barrows [MVP] <> posted:
    >>>

    >> Create a new asp page, put this code into it and run it:
    >>
    >> <%
    >> Const adOpenForwardOnly = 0
    >> Const adOpenForwardOnly = 0
    >> %>
    >>
    >> What error do you get? Does this perhaps provide a clue as to what is
    >> going on in the page you are having a problem with?
    >>
    >> In case you need to be beaten with a clue-stick: look for another
    >> place in your code where you (or whoever wrote the code) defined that
    >> constant.
    >>

    > That would be obvious, and easy to track down. But, as I didn't write
    > ADOVBS.INC, the problem wasn't as obvious as that. McKirahan got it
    > right.
    >

    Actually, he said the same thing i did, just in a different way

    --
    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 [MVP], Apr 24, 2008
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luke
    Replies:
    2
    Views:
    21,970
  2. =?Utf-8?B?YmlsbA==?=

    adovbs?

    =?Utf-8?B?YmlsbA==?=, May 12, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,040
    Patrice
    May 12, 2004
  3. Hubert Hung-Hsien Chang
    Replies:
    2
    Views:
    523
    Michael Foord
    Sep 17, 2004
  4. news.microsoft.com

    adovbs.inc doesn't have adText

    news.microsoft.com, Jun 30, 2003, in forum: ASP General
    Replies:
    1
    Views:
    152
    Val Mazur
    Jun 30, 2003
  5. Luke
    Replies:
    3
    Views:
    289
Loading...

Share This Page