|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.NET service running as NetworkService - Access Denied?XP SP2, .NET 2.0.
If I create a new/blank .NET service project, add the installer component, build and install the service... as soon as I "net start myservice" I get Access Denied. If I change NetworkService to LocalSystem or something else, everything works fine. Why am I getting Access Denied? The project is blank, I am not doing a darn thing. I need to use NetworkService as I need to access a network resource on another machine. How can I get NetworkService to work? Thanks I figured it out... the service module needed to be removed from my user
profile directory (My Documents\Visual Studio 2005) and put somewhere NetworkService could see. What a PITA, absolutely no feedback in event log etc... Show quote "Bob" <nob***@nowhere.com> wrote in message news:uJpkho3UGHA.2276@tk2msftngp13.phx.gbl... > XP SP2, .NET 2.0. > > If I create a new/blank .NET service project, add the installer component, > build and install the service... as soon as I "net start myservice" I get > Access Denied. If I change NetworkService to LocalSystem or something > else, everything works fine. > > Why am I getting Access Denied? The project is blank, I am not doing a > darn thing. I need to use NetworkService as I need to access a network > resource on another machine. How can I get NetworkService to work? > > Thanks > > |
|||||||||||||||||||||||