re:Is a Service not allowed to write to a network share?
From: felecha (felechaji_at_yahoo-dot-com.no-spam.invalid)
Date: 08/31/04
- Next message: BergRD: "VB.Net - Multi-Threaded Model Having Problems.."
- Previous message: ssdangelo: "Problem Creating Dataset"
- Maybe in reply to: felecha: "Is a Service not allowed to write to a network share?"
- Next in thread: Steven: "Re: Is a Service not allowed to write to a network share?"
- Messages sorted by: [ date ] [ thread ]
Date: 31 Aug 2004 16:03:14 -0500
I found that I could make it work by setting the Logon for the Service
to a User that has network access privileges, which the default
LocalSystem account for Services does not.
So I can get it to work, but I really want to make it set the Account
in my Service's code. There is a ServiceProcessInstaller.Account
property that looks like it is supposed to do exactly what I am doing
manually, but I'm getting errors. If I set
ServiceProcessInstaller.Account =
System.ServiceProcess.ServiceAccount.User
I get an Exception when I try to install the service. It says the
account is invalid or does not exist. The other Account property
possibilities allow the install to work but throw exceptions saying
that access to either the local or remote filepath is denied.
I've looked everywhere I can think of, but there must be something I
don't know about. The MSDN documentation is as clear as can be - it
definitely is telling me to do what I'm doing, but it's just not
working. Some little piece of the puzzle is missing
- Next message: BergRD: "VB.Net - Multi-Threaded Model Having Problems.."
- Previous message: ssdangelo: "Problem Creating Dataset"
- Maybe in reply to: felecha: "Is a Service not allowed to write to a network share?"
- Next in thread: Steven: "Re: Is a Service not allowed to write to a network share?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|