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 error 'ASP 0130' Invalid File attribute

  • 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:
    115
  • Date Created
    Friday, March 4, 2011
  • This Article Has been Viewed
    6288 times
  • Short Desc
    When you make your include files links, you have to make sure that you provide the correctly directed slash and the accompanying periods.
  • Details
    This issue will happen if you do not provide the properly directed slash and the accompanying periods.

     
    Active Server Pages error 'ASP 0130'
    Invalid File attribute
    /Load.asp, line 129
    File attribute '\File.asp' cannot start with forward slash or back slash.
  • Recreate Issue
    To recreate this issue:

    <!--#include file="\File.asp"-->

    As you can notice in the above demonstration, we have given a backwards slash and not included the accompanying periods, which in this case, the periods would not have mattered anyway, as this is incorrectly written with the backwards slash.
  • Resolve Issue
    To resolve this issue:

    <!--#include file="../File.asp"-->

    As you can see in the above demonstration, we have not only correctly provided the forward slash, but we have added in the accompanying periods to make this INCLUDE FILE correctly presented for the ASP Page.