access denied
Posted: Wed 16 Feb 2011, 19:37
När jag nyttjar "Hämta data när fil har ändrats" i datakällan så får jag följande i loggen:
StackTrace for Level 1:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share)
at SwitchKing.Server.BusinessAccess.DataCollection.Engines.FileSystemWatcherEngine.FileWriteCompleted(String filename)
at SwitchKing.Server.BusinessAccess.DataCollection.Engines.FileSystemWatcherEngine.CheckAvailibilityAndCollect(FileSystemWatcher watcher, String fullPath, WatcherChangeTypes type)
{BusinessAccessDataCollection - FileSystemWatcher} --<Error> -- 2011-02-16 19:27:10 -- Failed to check availibility. Error:
Level 1) Access to the path 'd:\MsureData\FileOutput\tempdata_VB-RETUR_output.txt' is denied.
Är det korrekt? Är det "SERVICE" som skall ha mer rättigheter på katalogen?
MVH Peter
StackTrace for Level 1:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share)
at SwitchKing.Server.BusinessAccess.DataCollection.Engines.FileSystemWatcherEngine.FileWriteCompleted(String filename)
at SwitchKing.Server.BusinessAccess.DataCollection.Engines.FileSystemWatcherEngine.CheckAvailibilityAndCollect(FileSystemWatcher watcher, String fullPath, WatcherChangeTypes type)
{BusinessAccessDataCollection - FileSystemWatcher} --<Error> -- 2011-02-16 19:27:10 -- Failed to check availibility. Error:
Level 1) Access to the path 'd:\MsureData\FileOutput\tempdata_VB-RETUR_output.txt' is denied.
Är det korrekt? Är det "SERVICE" som skall ha mer rättigheter på katalogen?
MVH Peter