Skip to main content
Inspiring
April 24, 2008
Answered

cfdirectory not working... kinda

  • April 24, 2008
  • 3 replies
  • 421 views
I'm hoping someone can help me out with this. Running CF8 on Windows multiserver install, developing locally on XP Pro and production on Win2003 Server. For some reason I can't get cfdirectory to return results past top level folders.
<cfdirectory action="list" directory="\\#server#\home\" name="dircontent"> works and returns results
<cfdirectory action="list" directory="\\#server#\home\#user#\" name="dircontent"> returns zero results

I have the service set up to log on with a valid user account. The same happens when I try it with other top level folders, but locally it will show everything correct. Has anyone seen this happen before?

    This topic has been closed for replies.
    Correct answer Ashburton
    I figured out what it was. Both my CF servers are set up as multiserver, but on my local machine I didn't bother to setup and start a separate JRun service for it, letting it instead run off the CFusion service. This is the one I had set to log on with the valid user account. It apparently didn't like that. When I put the cfm file on the 8300 instance it worked. Same when I started a separate JRun service for port 8301.

    I don't have a lot of experience working with CF8 multiserver instance but I find it strange that it worked this way. I would have expected cfdirectory to work fine if it was showing the top level folders. Oh well, problem solved.

    Thanks

    3 replies

    AshburtonAuthorCorrect answer
    Inspiring
    April 25, 2008
    I figured out what it was. Both my CF servers are set up as multiserver, but on my local machine I didn't bother to setup and start a separate JRun service for it, letting it instead run off the CFusion service. This is the one I had set to log on with the valid user account. It apparently didn't like that. When I put the cfm file on the 8300 instance it worked. Same when I started a separate JRun service for port 8301.

    I don't have a lot of experience working with CF8 multiserver instance but I find it strange that it worked this way. I would have expected cfdirectory to work fine if it was showing the top level folders. Oh well, problem solved.

    Thanks
    Inspiring
    April 24, 2008
    > I have the service set up to log on with a valid user account

    And if you log in as that user, can you see the files in question?

    --
    Adam
    Inspiring
    April 24, 2008

    Does #user# contain a valid subdirectory? No extra spaces or anything?