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:
  • Active Server Pages, ASP 0140 (0x80004005) The @ command

  • 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:
    41
  • Date Created
    Tuesday, November 16, 2010
  • Last Updated
    Wednesday, November 17, 2010
  • This Article Has been Viewed
    3523 times
  • Short Desc
    When you create your asp page(s), you need to make sure that you have the Language and codepage located at the top of your page.
  • Details
    When you are working on your asp page(s), you need to have the Language and codepage located within your page, and the correct place is always at the top of the page and only once per page.

    The error is:

     
    Active Server Pages, ASP 0140 (0x80004005)
    The @ command must be the first command within the Active Server Page.
    /ee/Q_26619248/paging.asp, line 56


  • Recreate Issue
    Placing more than 1 @ command within your page (or) not having it located at the top most part of the page will cause this error.
  • Resolve Issue
    To correct this error, add the code
    <%
    @LANGUAGE="VBSCRIPT" CODEPAGE="65001"
    %>

    To the top most part of your page.
    This must be before any other code or includes, if not, then the error will happen.