You should really use UNC instead a mapped drive .

Check out some links from

http://www.cffaq.org/cfserveruseraccount.cfm

Justin
[EMAIL PROTECTED]


>-----Original Message-----
>From: Andy Ewings [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 27, 2001 1:38 PM
>To: CF-Talk
>Subject: Problem with CFFILE (sort of)
>
>
>OK got a strange one.  I think this will end up being an NT permissions
>problem but thought one of you may have come across it.
>
>I have a web site which sits on 2 seperate web servers.  It is
>load balanced
>and state is maintained via client variables stored in SQL server on a 3rd
>machine.  All 3 are networked.  I have a cfm page on both web servers which
>is attempting to create a file on the 3rd machine using cffile.  Both web
>servers have mapped drives to a folder on the 3rd server so when this cfm
>page is requested it writes a file to the same place regardless of
>which web
>server delivered the page (due to load balancing).
>
>The problem I am having is that when CFServer executes the cffile
>command it
>says that it can't access the file.  I have checked all the permissions on
>the NT server and that folder is opened up for full access to everyone.  I
>have tried sucessfully to create a file in this folder from a dosbox on one
>of the webservers so the path I'm using is definitely correct.  To
>complicate the problem I have changed the code to write to C:\
>(which exists
>on both web servers) as opposed to the mapped drive to the 3rd
>server.  This
>works fine.  However I can't use this as I won't know which C drive it has
>created the file on due to the load balancing and when request the
>next page
>which looks for this file it will not find it if the page gets delivered
>from the other web server.
>
>Finally I put a specific IP address in the url that requests the page that
>creates the file and subsequently reads it so I could guarantee that it
>would write and read to the same server (ie bypass load balancing).  But
>when I did this the session auomaically expired (which I don't understand).
>
>Has anyone ever come across anything remotely similar to this by any remote
>chance!???
>
>Andy
>
>------------------------------------------------------------------
>Andrew Ewings
>Project Manager
>Thoughtbubble Ltd
>http://www.thoughtbubble.net
>------------------------------------------------------------------
>United Kingdom
>http://www.thoughtbubble.co.uk/
>Tel: +44 (0) 20 7387 8890
>------------------------------------------------------------------
>New Zealand
>http://www.thoughtbubble.co.nz/
>Tel: +64 (0) 9 488 9131
>------------------------------------------------------------------
>The information in this email and in any attachments is confidential and
>intended solely for the attention and use of the named addressee(s). Any
>views or opinions presented are solely those of the author and do not
>necessarily represent those of Thoughtbubble. This information may be
>subject to legal, professional or other privilege and further distribution
>of it is strictly prohibited without our authority. If you are not the
>intended recipient, you are not authorised to disclose, copy,
>distribute, or
>retain this message. Please notify us on +44 (0)207 387 8890.
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to