Re: Windows Service Cannot Move Files
- From: "Michael D. Ober" <obermd.@.alum.mit.edu.nospam>
- Date: Wed, 26 Jul 2006 02:40:12 GMT
Please verify both the share permissions and the NTFS permissions. I had a
similar problem and my share permissions were wrong.
Mike Ober.
"dermot" <dfrench@xxxxxxxxxxxxxxxxx> wrote in message
news:1153865186.288388.28850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
It is a domain admin account, and has also been given all rights on thefiles?
folder in question.
Claes Bergefall wrote:
Are you sure that the account has write access to the directory and
applicationSounds like it only has read access.
/claes
"dermot" <dfrench@xxxxxxxxxxxxxxxxx> wrote in message
news:1153834300.863097.28130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am using the full network path
The windows service can see the original files, it just cannot rename
them
Any ideas?
TDC wrote:
Watch out for using mapped drive letters. These are done on a
user-by-user basis when they log in. Try using the full network path
(like //corp_server/datadir/targetfile.txt) and see if that helps.
Tom
dermot wrote:
That isn't the problem
It uses a notify filter, for last write and then delays
This works fine using exact same code from a Windows form
Application).(just doesn't work when I change it to Windows Services
by
Regards,
Dermot
tommaso.gastaldi@xxxxxxxxxxx wrote:
hi dermot
I think you are trying to get the files while they are still used
it !the tcp.
You should allow some delay. When a file arrives do not assault
number
Place a timer and make an attempt every half second. You will see
some attempt will eventually succeed. Can place a limit to the
not) -of
attempts and log the possible unsuccesses.... let me know
-tom
dermot ha scritto:
Mike,
I actually changed the account that starts it to a domain admin
account. It can see the files (which the local system could
message)?however it cannot move the files (gets the access denied
network.
The services is running on a win 2003 server machine.
Any ideas
Regards,
Dermot
Michael D. Ober wrote:
Windows services, by default, don't have access to the
use.In w2k and
XP there is a network version of the system account you can
visual
Mike Ober.
"dermot" <dfrench@xxxxxxxxxxxxxxxxx> wrote in message
news:1153778884.852703.162660@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have wrriten a small windows service application in
filestudio
.net 2003 which listens for incoming FTP files.
These files would overwrite over time due to duplicate file
names.
However any time the windows service tries to rename the
access(using
flFile.move(source,destination)) it gets an error saying
is
denied.
The files are on the network, so we though the local system
account may
not have access
We tried changing the account the service uses to a domain
admin, but
still got the same error.
The application runs fine as VB windows form
Any ideas, why windows service cannot do the same.
Many Thanks
Dermot French
.
- Follow-Ups:
- Re: Windows Service Cannot Move Files
- From: dermot
- Re: Windows Service Cannot Move Files
- References:
- Windows Service Cannot Move Files
- From: dermot
- Re: Windows Service Cannot Move Files
- From: Michael D. Ober
- Re: Windows Service Cannot Move Files
- From: dermot
- Re: Windows Service Cannot Move Files
- From: tommaso . gastaldi
- Re: Windows Service Cannot Move Files
- From: dermot
- Re: Windows Service Cannot Move Files
- From: TDC
- Re: Windows Service Cannot Move Files
- From: dermot
- Re: Windows Service Cannot Move Files
- From: Claes Bergefall
- Re: Windows Service Cannot Move Files
- From: dermot
- Windows Service Cannot Move Files
- Prev by Date: Re: silly, probably meaninigless question
- Next by Date: How to launch program from CD after vb deployment installed
- Previous by thread: Re: Windows Service Cannot Move Files
- Next by thread: Re: Windows Service Cannot Move Files
- Index(es):
Relevant Pages
|