471,325 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

C# windows services cannot access network files and folders

I have got a windows service installed through installutil in C#.I have change the login settings from localsystems todomain/user. The user can access the network resources with noproblems but if the windows services can't. Directory.Existreturns false, but true if I use a normal C# windows app.
--------------------------------
From: Razor Works

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>De0TDTLgHE+WVdZqXdoEBg==</Id>
Jul 21 '05 #1
1 2700
Do you access network files by using mapped drives like
'N:\somefolder\myfile.txt'? If so, change to the UNC naming convention
'\\myserver\myshare\somefolder\myfile.txt'. Keep in mind that logon scripts
are not executed for windows services and even manually assigned drive
letters are not accessible in the context of a windows service.

Hope that helps,
Guido

"Razor Works via .NET 247" wrote:
I have got a windows service installed through installutil in C#. I have change the login settings from localsystems to domain/user. The user can access the network resources with no problems but if the windows services can't. Directory.Exist returns false, but true if I use a normal C# windows app.
--------------------------------
From: Razor Works

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>De0TDTLgHE+WVdZqXdoEBg==</Id>

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Mullin Yu | last post: by
8 posts views Thread by Pete Wittig | last post: by
2 posts views Thread by Joseph Geretz | last post: by
1 post views Thread by Razor Works via .NET 247 | last post: by
10 posts views Thread by dermot | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.