title: System.UnauthorizedAccessException Access to the path is denied
body: <p>At attempt to write PDF document with following code:</p>
  
  <pre><code>document = new Document();
  PdfWriter writer = null; ;
  try
  {
      writer = PdfWriter.GetInstance(document, new FileStream(@"E:\mergFiles", FileMode.Create));
  }
  catch (Exception xc)
  { }
  </code></pre>
  
  <p>I am getting an exception:</p>
  
  <pre><code>{System.UnauthorizedAccessException: Access to the path 'E:\mergFiles' is denied.
     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
     at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
     at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
     at System.IO.FileStream..ctor(String path, FileMode mode)
     at PDFLibrary.PDFManager.MergeDocs()}
  </code></pre>
  
  <p>I have all access to this folder.</p>
  
  <p>goggled and found that this could help <code>File.SetAttributes(@"E:\mergFiles", FileAttributes.Normal);</code> but still I'm getting the same exception.</p>