Home All Groups Group Topic Archive Search About

.NET service running as NetworkService - Access Denied?

Author
29 Mar 2006 9:45 PM
Bob
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

Author
29 Mar 2006 10:25 PM
Bob
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
>
>

AddThis Social Bookmark Button