Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfdirectory not working... kinda

Explorer ,
Apr 24, 2008 Apr 24, 2008
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?

385
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Apr 25, 2008 Apr 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 ...
Translate
LEGEND ,
Apr 24, 2008 Apr 24, 2008

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 24, 2008 Apr 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 25, 2008 Apr 25, 2008
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources