title: C# - UnauthorizedAccessException in Directory.CreateDirectory()
body: <p>I'm new at C#, but I guess I'm using a simple command in Directory.CreateDirectory,
  and while I was only building in my own PC everything was fine. But when I published it and opened the app in other PC, it has thrown this exception, and I have found no answers on how to fix it on the code source. 
  I tried to run it as admin in Win7, but didn't work also.
  Here's the code. It's in portuguese, but I don't think it'll be a problem :)</p>
  
  <p>Thank you all so much.</p>
  
  <pre><code>string diretorio = @"C:\Program Files\LAPER\EqNumDPI\Edifícios\" + NomeEdificio;
  
          if (MessageBox.Show("Você tem certeza de que inseriu os dados corretamente?\nEsses campos não poderão ser alterados posteriormente.",
              "[LAPER] Cálculo do EqNumDPI", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning,
              MessageBoxDefaultButton.Button2) == DialogResult.OK)
          {
              TelaAdicionarAmbiente Tela = new TelaAdicionarAmbiente();
              if (!Directory.Exists(diretorio))
              {
                  Directory.CreateDirectory(diretorio);
                  StreamWriter file2 = new StreamWriter(@"C:\Program Files\LAPER\EqNumDPI\Edifícios\"+NomeEdificio+"\\metodo.txt", true, Encoding.ASCII);
                  if (rBArea.Checked) file2.Write("AREA");
                  else file2.Write("ATIVIDADE");
                  file2.Close();
                  this.Close();
              }
              else
              {
                  MessageBox.Show("Nome de edifício já existe.\nPor favor, insira outro nome.",
                      "[LAPER] Cálculo do EqNumDPI",MessageBoxButtons.OK,MessageBoxIcon.Stop);
              }
          }
  </code></pre>