Windows Service erroring out accessing a remote server file system

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have a Windows Service running on a workstation that is attempting to read a directory located on a remote file server in the same Domain. I have run the service using the Local System account and as a user with known rights to the directory. When Directory.GetFiles()
is executed getting the below stack trace. I have tried both Mapped Drive and


Event Type: Error<br/>
Event <br/>
Category: None<br/>
Event ID: 0<br/>
Date: 11/26/2012<br/>
Time: 8:24:18 <br/>
AM<br/>
User: N/A<br/>
Computer: POM0001-FXBL4V1<br/>
Description:<br/>
Scanning:: <br/>
Error Accessing the Directory ( file://fscty04/ICTS/CertScansMultipage \fscty04ICTSCertScansMultipage )
<br/>
you specified in your Choose Folders ( <br/>
at <br/>
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)<br/>
at <br/>
System.IO.Directory.InternalGetFileDirectoryNames(String path, String <br/>
userPathOriginal, String searchPattern, Boolean includeFiles, Boolean <br/>
includeDirs, SearchOption searchOption)<br/>
at <br/>
System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption <br/>
searchOption)<br/>
at System.IO.Directory.GetFiles(String path)<br/>
at <br/>
DTP.View.Scanning.ScanProcessor.AddDirectoryImages(String DirectoryPath, <br/>
ScanningControl Base) in H:CertifitracCertifiTracUnified - Main <br/>
TrunkDTPLibraryDTPLibraryViewScanningScanningControl.xaml.cs:line 4674)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp
http://go.microsoft.com/fwlink/events.asp .
Event Type: Error
Event <br/>
Category: None<br/>
Event ID: 0<br/>
Date: 11/26/2012<br/>
Time: 8:44:27 <br/>
AM<br/>
User: N/A<br/>
Computer: POM0001-FXBL4V1<br/>
Description:<br/>
Scanning:: <br/>
Error Accessing the Directory (Y:CertScans) you specified in your Choose <br/>
Folders ( at System.IO.__Error.WinIOError(Int32 errorCode, String <br/>
maybeFullPath)<br/>
at System.IO.Directory.InternalGetFileDirectoryNames(String <br/>
path, String userPathOriginal, String searchPattern, Boolean includeFiles, <br/>
Boolean includeDirs, SearchOption searchOption)<br/>
at <br/>
System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption <br/>
searchOption)<br/>
at System.IO.Directory.GetFiles(String path)<br/>
at <br/>
DTP.View.Scanning.ScanProcessor.AddDirectoryImages(String DirectoryPath, <br/>
ScanningControl Base) in H:CertifitracCertifiTracUnified - Main <br/>
TrunkDTPLibraryDTPLibraryViewScanningScanningControl.xaml.cs:line 4674)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp
http://go.microsoft.com/fwlink/events.asp .
<hr class="sig chuck

View the full article
 
Back
Top