title: Why am I still getting "Access to the path 'C:\...\...' is denied" even after granting IIS_IUSRS write permission on the directory?
body: <p>I've written a method on my controller that auto generates a powerpoint deck for my client and all that works fine...except I'm stuck on the part about saving the file to disk.</p>
  
  <p>I'm no stranger to this concept; and "thought"  that all I needed to do is grant IIS_IUSRS write permission on the directory and read permission on all parent directories.  I'm using IIS 7, and I've done this before with IIS 6 granting NETWORK SERVICE the same permissions.  </p>
  
  <p>Just for kicks, I even gave EVERYONE write permissions on the directory and I still keep getting the Exception: System.UnauthorizedAccessException: Access to the path 'C:......\Content\PPT' is denied. (I removed some of the path for simplicity).</p>
  
  <p>Is there anything else I am overlooking?  The server it's on is the first one I've set up, so I just may have overlooked something?</p>
  
  <p>Here's my controller method simplified:</p>
  
  <pre><code>public ActionResult CreatePowerPoint()
      {
          string path = HttpContext.Server.MapPath("~/Content/PPT");
  
          Aspose.Slides.Presentation presentation = new Aspose.Slides.Presentation();
          CreatePresentation(presentation);
  
          presentation.Save(path, Aspose.Slides.Export.SaveFormat.Ppt);
  
          return View();
      }
  }
  </code></pre>
  
  <p>the presentation.Save() method takes a path and a save format...I don't know what else to try... Is there something wrong with my code?  Am I creating the path incorrectly?  I can also pass a Stream stream into the save method, but I am not sure if that will fix the problem.</p>