我创建了C#windows服务来监视活动目录密码更改。无论何时更改密码,该服务都会调用web服务并返回结果。如果服务返回不成功,则filewatcher directry为其创建一个文本文件;否则不。服务启动时,如果有任何待处理的请求,它将处理。FileSystem观察器路径不起作用
//Whenever file created... Synchronize the pending requests. When active direcory changes occur it will create files. If request is suucessfull delte the created file otherwise not
当我改变`路径。 Filewatchercreated事件不会触发。就像用任何其他名称数据或类似的东西改变密码一样。如果有人可以请帮我解决这个问题。
你检查,因此,您试图访问该文件夹,不需要管理权限? – Frozendragon 2012-07-10 06:23:13
Frozendragon感谢您的答复。我已经检查过。这两个文件都使用代码创建并具有相同的权限。 – test 2012-07-10 06:38:56