N
Niklas Elelid
Hi!
I´m writing a Windows Service in VB.NET that should open and write to
a file on a remote machine. The remote machine is not on the same
domain as the machine running the service.
If I run my application as a normal Windows application it can use the
mapped drive (k:\) that I have set up, but when running the service I
only get a "Could not find part of the path k:\dns\" error.
I guess this has to do with the fact that the service is running under
a different user account (LOCAL SYSTEM), but I´ve also tried to set up
the service to logon using the logged on desktop account
(administrator) that has got the mapped drive.
How can I possibly solve this? I have tried with impersonation but I
can´t get it to logon properly to any other machine but my local
machine.
Many thanks in advance!
Niklas Elelid
Stockholm, Sweden
I´m writing a Windows Service in VB.NET that should open and write to
a file on a remote machine. The remote machine is not on the same
domain as the machine running the service.
If I run my application as a normal Windows application it can use the
mapped drive (k:\) that I have set up, but when running the service I
only get a "Could not find part of the path k:\dns\" error.
I guess this has to do with the fact that the service is running under
a different user account (LOCAL SYSTEM), but I´ve also tried to set up
the service to logon using the logged on desktop account
(administrator) that has got the mapped drive.
How can I possibly solve this? I have tried with impersonation but I
can´t get it to logon properly to any other machine but my local
machine.
Many thanks in advance!
Niklas Elelid
Stockholm, Sweden