title: iis-express file access permissions
body: <p>I'm running a wcf service hosted on iis express 7.5.
  Inside the service, i have a service operation that needs to write a file on the filesystem, but when it tries to do so, i'm getting an exception.</p>
  
  <p>i'm writing the file to the exact same folder where the project is hosted, by using:
  string filePath = HttpContext.Current.Server.MapPath(".");</p>
  
  <p>but i keep getting this exception:</p>
  
  <p>DirectoryNotFoundException - "Could not find a part of the path C:\websites....</p>
  
  <p>It seems like my iis express doesn't have permission to write files.
  if so, how do i give it permission?</p>
  
  <p>thanks!</p>