Skip navigation
Aball2
Currently Being Moderated

Browser "Can't find file"

Dec 2, 2011 12:11 PM

I am using CF8 on 2003 Windows Server.

 

I have a file, let's call it "ABC.cfm".  Everything is working fine with this file.

 

I have updated the code in the file and renamed "ABC.cfm" to "ABCold.cfm".   I think saved a new file called "ABC.cfm" and moved it the location where the original "ABC.cfm" file was and I get an error in the browsers (Firefox and IE) that basically says it can't find the file.  If I rename "ABCold.cfm" back to "ABC.cfm" it finds the file.

 

Any idea why the browsers can not find the renamed file but can find the same file by the original name?

 
Replies
  • Currently Being Moderated
    Dec 2, 2011 12:15 PM   in reply to Aball2

    Are you sure of the case of that file is exactly the same?  Are you sure

    you are uploading it to the right folder?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 2, 2011 12:24 PM   in reply to Aball2

    And the error you get is a 404 error or some other error?  Like a cfinclude

    cannot find template error?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 2, 2011 1:11 PM   in reply to Aball2

    Sounds to me like IIS doesn't have sufficient permissions to see the files.  This is a bit odd because I have a feeling that generally file perms are inherited from their directory, not set on the files themselves.  However you should check whether the a/c that IIS is running as has permissions to see the files that aren't being served.

     

    --

    Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 3, 2011 11:34 AM   in reply to Aball2

    Aball2 wrote:

     

    I am using CF8 on 2003 Windows Server.

     

    I have a file, let's call it "ABC.cfm".  Everything is working fine with this file.

     

    I have updated the code in the file and renamed "ABC.cfm" to "ABCold.cfm".   I think saved a new file called "ABC.cfm" and moved it the location where the original "ABC.cfm" file was and I get an error in the browsers (Firefox and IE) that basically says it can't find the file.  If I rename "ABCold.cfm" back to "ABC.cfm" it finds the file.

     

    Any idea why the browsers can not find the renamed file but can find the same file by the original name?

    ColdFusion is known to sometimes masquerade its inability to process an error by responding with a page-not-found. To rule this out, perform the following test.

     

    Comment out all the code on the page, excepting

     

    Test result: <cfoutput>#now()#</cfoutput>

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points