Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing to a file on a remote computer

Status
Not open for further replies.

ITGL72

MIS
Joined
Jul 2, 2001
Messages
105
Location
US
I have a webserver (NT4 SP6 IIS4) running an app that needs to write to a file on another server on the same subnet. Now I have tried this several ways:

I have tried mapping a network drive to a server in the same domain, and on a server in another domain (Both however on same subnet), I also tried just access by share name (example: \\server\dir)

I keep getting:

Error processing CFFILE
Error attempting to write data to target file 'L:\020429.ord'.
Error: The file could not be accessed.

I have checked the trusts, they are OK. I can connect to the share when sitting in front of the servers, and I can write a text file to the drives directory from the other server too.

It just seems I can not write to a file via CFFILE on to another computer.

On the share on the remote computer I even put DOMAIN\Everyone 'full control' (DOMAIN being where the server trying to use CFFILE is located)

Any suggestions? Anything I may have missed?



PS: I am ableto wrote to a file locally write on the webserver doing the CFFILE so I know the syntax is correct.
 
Check the user account that the CF service is running under. By default it uses the System account. Create a new user with rights to access that directory and to be able to run everything else. I usually just give it Admin rights. Then set the service to run under that account. You'll have to stop and restart the CF service.

Then give that user rights to the share on the other server. It should work fine after that.
 
Thanks - so I guess it is POSSIBLE to write to a file on a remote server using CF. I'll give it a try and post my results. Thanks!
 
Oh, and one other thing -- I haven't really used mapped drives successfully -- I use the UNC to a share

e.g
\\servername\sharedpath
etc.

Good Luck!

Tim P.
 
I got it to work, I actually have it working with a mapped drive however. I have tested it like 10 times and it works. So maybe I'll just leave it. Thanks for the help!

Running the CF services under a different account and assigning it permissions (via the trust - other server in another domain) it seemed to come together.

Thank the maker for message boards!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top