Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Microsoft VBScript runtime error '800a01a8' Object required

Microsoft VBScript runtime error '800a01a8' Object required

Scheduled Pinned Locked Moved XML / XSL
csharpasp-netsharepointsysadminhelp
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shyamaprasad
    wrote on last edited by
    #1

    Dear All, I have a combination of classic ASP page and asp.net pages in the application. I am getting this error "Microsoft VBScript runtime error '800a01a8' Object required" on a asp page. The error is coming from this code: sRawHtml = Request("h_RawHTML") Set xd = Server.CreateObject("MSXML2.DOMDocument") Call xd.loadXML(CStr(sEncrypteXML)) set xel = xd.selectSingleNode("//WebSiteInformation") xel.setAttribute "Site_HTML", CStr(sRawHTML) Please tell me if I have written something wrong. Thanks, SP

    C 1 Reply Last reply
    0
    • S shyamaprasad

      Dear All, I have a combination of classic ASP page and asp.net pages in the application. I am getting this error "Microsoft VBScript runtime error '800a01a8' Object required" on a asp page. The error is coming from this code: sRawHtml = Request("h_RawHTML") Set xd = Server.CreateObject("MSXML2.DOMDocument") Call xd.loadXML(CStr(sEncrypteXML)) set xel = xd.selectSingleNode("//WebSiteInformation") xel.setAttribute "Site_HTML", CStr(sRawHTML) Please tell me if I have written something wrong. Thanks, SP

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Which line gets the error ? Is the MSXML2.DOMDocument class present ( I think it's part of IE, so it should be, but that seems to me to be what the problem is ).

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      S 1 Reply Last reply
      0
      • C Christian Graus

        Which line gets the error ? Is the MSXML2.DOMDocument class present ( I think it's part of IE, so it should be, but that seems to me to be what the problem is ).

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        S Offline
        S Offline
        shyamaprasad
        wrote on last edited by
        #3

        Hi, the error is on the last line (xel.setAttribute "Site_HTML", CStr(sRawHTML)). this is working for some HTML code passing thru sRawHTML; and not working for some other HTMLs

        S C 2 Replies Last reply
        0
        • S shyamaprasad

          Hi, the error is on the last line (xel.setAttribute "Site_HTML", CStr(sRawHTML)). this is working for some HTML code passing thru sRawHTML; and not working for some other HTMLs

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          And is it possible you could post examples of working and not-working HTML? Or is it secret?

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          S 2 Replies Last reply
          0
          • S Stuart Dootson

            And is it possible you could post examples of working and not-working HTML? Or is it secret?

            Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

            S Offline
            S Offline
            shyamaprasad
            wrote on last edited by
            #5

            This one is working properly <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> <table border="1" width="600" id="table1"> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> <td>6</td> <td>7</td> <td>8</td> <td>9</td> </tr> <tr> <td>10</td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> </body> </html>

            1 Reply Last reply
            0
            • S Stuart Dootson

              And is it possible you could post examples of working and not-working HTML? Or is it secret?

              Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

              S Offline
              S Offline
              shyamaprasad
              wrote on last edited by
              #6

              ...basically this one is giving the error... <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> <table border="0" width="680" bordercolor="#008080" id="table1" bgcolor="#33CCCC"> <tr> <td>  </td> <td colspan="8"> <p align="center">  <font color="#FFFFFF"> Should extend up to touch bottom of Search Section </font> </td> <td>  </td> </tr> <tr> <td>  </td> <td colspan="8"> <p align="center"> <font size="4">Template Test</font> </td> <td>  </td> </tr> <tr> <td>  </td> <td colspan="8"> <p align="center"> <font size="2">980 pixels wide - variable length</font> </td> <td>  </td> </tr> <tr> <td colspan="8"> <font color="#FFFFFF">< Should extend left to be flush with margin of banner and Search Section</font></td> <td>  </td> <td>  </td> </tr> <tr> <td>  </td> <td>  </td> <td colspan="8"> <p align="right"> <font color="#FFFFFF">Should extend right to be flush with margin of banner and Search Section  >  </font> </td> </tr> <tr> <td>  </td> <td colspan="8"> <p align="center"> &

              C 1 Reply Last reply
              0
              • S shyamaprasad

                Hi, the error is on the last line (xel.setAttribute "Site_HTML", CStr(sRawHTML)). this is working for some HTML code passing thru sRawHTML; and not working for some other HTMLs

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                OK, well, that's easy. xel is sometimes null. I notice you don't write code to check if it is.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                1 Reply Last reply
                0
                • S shyamaprasad

                  ...basically this one is giving the error... <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> <table border="0" width="680" bordercolor="#008080" id="table1" bgcolor="#33CCCC"> <tr> <td>  </td> <td colspan="8"> <p align="center">  <font color="#FFFFFF"> Should extend up to touch bottom of Search Section </font> </td> <td>  </td> </tr> <tr> <td>  </td> <td colspan="8"> <p align="center"> <font size="4">Template Test</font> </td> <td>  </td> </tr> <tr> <td>  </td> <td colspan="8"> <p align="center"> <font size="2">980 pixels wide - variable length</font> </td> <td>  </td> </tr> <tr> <td colspan="8"> <font color="#FFFFFF">< Should extend left to be flush with margin of banner and Search Section</font></td> <td>  </td> <td>  </td> </tr> <tr> <td>  </td> <td>  </td> <td colspan="8"> <p align="right"> <font color="#FFFFFF">Should extend right to be flush with margin of banner and Search Section  >  </font> </td> </tr> <tr> <td>  </td> <td colspan="8"> <p align="center"> &

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  This one is not valid XML.

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups