Hey Max,
thanks for the reply.
Ok, i see the problem.
I state in ServiceProjectInstaller that i want to run under the "User"
property value.
I also use the secpol.msc to tell thet a user account (the same that i log
in to my system)
will have the "Log on as a service" priviledge.
Bu when i run the installutil and give it the credentials for that account,
i got back a "The account name is invalid or the password for this account
is invalid .."
message, even if they DO exist and they are correctly given to it...
A, as i told toy Jan (that already posted a reply to me),
the command
EventLog.WriteEntry(File.Exists(@"\\med\vol1\email s\a.txt").ToString()));
that i run from the Windows Service, gives me false...
Another thing to check ?
Thanks a lot !
anthonyb
"Max" <Pl****@reply.to.news.group> wrote in message
news:eN**************@TK2MSFTNGP10.phx.gbl...
Mapped drive is mapped for some specific user, while service is running in
another context and is not aware of this mapping.
There is a privilege called "Log on as a service". The user account you
specify for service should have this privilege. Use secpol.msc to grant
it. Also consider specifying URN path, like \\someserver\SomeShare\Email
instead of G:\Emails.
You might also experience problems accessing shares with
yourcomputer\LocalSystem principal...