CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • Microsoft VBScript runtime error '800a01c2'

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    109
  • Date Created
    Friday, February 25, 2011
  • Last Updated
    Thursday, March 3, 2011
  • This Article Has been Viewed
    2768 times
  • Short Desc
    Commenting out code or create an ASP delimenter can sometimes cause the error if you do not comment out the entire line after the opening delimiter.
  • Details
    If you have some code within you ASP delimiter and you comment it out for testing (or) to make a comment that only you can see within the script, you may encounter the below error if you do not comment out the entire line after the opening delimiter.

     
    Microsoft VBScript runtime error '800a01c2'
    Wrong number of arguments or invalid property assignment: 'T'
    /Footer.asp, line 2
  • Recreate Issue
    To recreate this issue.

    <%
    T'his is our line that we want to hide as a coders comment
    %>

    As you can see in the above line, the "T" is left open, and this will cause the script to run to this point and stop and create the 800a01c2 error.
  • Resolve Issue
    To correct this issue.

    To properly write out your comment within your asp delimiter write it out as this.
    <%
    'This is our line that we want to hide as a coders comment
    %>