.NET service running as NetworkService - Access Denied?

B

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
 
B

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top