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:
  • Cyclic Include The file 'main.asp' is included by itself (perhaps indirectly). Please check include files for other Include statements.

  • 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:
    211
  • Date Created
    Thursday, February 2, 2017
  • This Article Has been Viewed
    943 times
  • Short Desc
    When you add in an INCLUDE FILE to an ASP Document, with the same name of the file it is included in.
  • Details
    Using Includes helps to keep your code organized. Sometimes when we are in a hurry, we tend to write the name of the file we're in, instead of the file that we need to include.
    And this simple mistake will create the following error.

     
    Active Server Pages error 'ASP 0135'
    Cyclic Include
    /test/main.asp, line 90
    The file 'main.asp' is included by itself (perhaps indirectly). Please check include files for other Include statements.
  • Recreate Issue
    To Recreate this issue.
    Name the file Main.asp
    Now, add the include to it.
    <!--#include file="main.asp"-->

    This will cause the error.
  • Resolve Issue
    To resolve this issue.

    The name of the file is Main.asp.
    Create another file, and add in the information to it, that needs to be included into the Main.asp file. Once the file has been created, insert the following statement to your Main.asp file.
    <!--#include file="Other.asp"-->