通过UNC在FileWatcher中出现问题 [英] Issue in FileWatcher via UNC

查看:96
本文介绍了通过UNC在FileWatcher中出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Windows服务中通过FileWatcher查看UNC路径文件.Service适用于本地路径而不适用于UNC路径。我得到下面提到的例外

Am trying to watch a UNC Path file via FileWatcher in Windows service .Service works for local path not for UNC path. I get the below mentioned exception

Service cannot be started. System.ArgumentException: The directory name \\ServerName\Folder1\Target Folder is invalid.



这是我在托管的事件查看器中获得的信息作为网络服务的服务。我可以通过控制台应用程序而不是通过Windows服务在FileWatcher中读取上述路径。


This was the information i got in event viewer i have hosted the service as Network service . I can able to read the above mentioned path in FileWatcher via Console Application not via Windows Service.

推荐答案

这可能是一个权限问题。确保运行该服务的标识具有适当的权限。
It is likely a permission issue. Make sure the identity that is running the service has the proper permissions.


这篇关于通过UNC在FileWatcher中出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆