title: Cannot access shared folder programatically in sharepoint
body: <p>I'm trying to display shared folder contents in doc library fashion in sharepoint 2007. I am able to get files from local dir <code>c:\Test</code> but not from shared folder.</p>
  
  <p>I am using below code to check:</p>
  
  <pre><code>if (Directory.Exists(@"\\servername\foldername\"))
  </code></pre>
  
  <p>If I try same code in .net application on same sharepoint server it is detecting the shared folder but no luck with sharepoint code</p>
  
  <p><strong>it says folder doesn't exist and we are using IIS anonymous with CA Siteminder authentication</strong></p>
  
  <p>any ideas are greatly appreciated!</p>