c# - Windows service cannot access UNC path -


i have windows service written in c# running on windows server 2012. service running domain user permissions on local machine , ntfs permissions shared network resources on isilon san. can access shared files , directories in windows explorer when logged on user following format:

\\isilon\path\to\dir\ 

however, calls to

system.io.directory.exists() 

always return false. @ first thought this: http://support.microsoft.com/kb/827421 however, implementing workaround suggests can use

system.io.directory.getdirectories() 

to access directories (without checking first if exist) instead. throws

system.io.ioexception: unexpected network error occurred. 

this same service code works when running on server (windows 2008) on same network.

what crazy if reboot server, file system calls succeed @ first. after amount of time, or after accesses same file path computer, programmatic calls start fail , never spontaneously succeed again. rebooting server fixes issue short while.

i'm totally stumped shouldn't necessary reboot windows server instance hardly ever. don't have idea affecting fileshare permissions or accessibility. maybe related new implementation of smb 3.0 on windows server 2012?

edit: ok, turns out i'm not crazy. version of onefs (the filesystem running on isilon san) not explicitly compatible windows server 2012. while claimed compatible smb. updating onefs version 6.5.5.14 6.5.5.20 fixed problem , has been stable since.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -