title: Visual Basic .NET Access to the path 'C:\' is denied
body: <p>I am using Visual Studio 2012 and Visual Basic .NET to build the application (with Windows 7)</p>
  
  <p>I currently build the install package and i install to another pc to test program.</p>
  
  <p>When I was creating txt file by my app, i was getting "Access to the path  'C:\'  is denied" error</p>
  
  <p>I know that I was using sub account to run my application.</p>
  
  <p>If I run as administrator, it is was working fine.  However, the program should be able to run application without using administrator account .</p>
  
  <p>These are what I tried to solve this problem so far.</p>
  
  <p><strong>First</strong>, I change the location to write file in "Program file folder" such as  "C:\Program file\My App"</p>
  
  <p>However, it didn't work </p>
  
  <p><strong>Second</strong>, I was trying to change</p>
  
  <pre><code> &lt;requestedExecutionLevel  level="asInvoker" uiAccess="false" /&gt;
  </code></pre>
  
  <p>to</p>
  
  <pre><code> &lt;requestedExecutionLevel  level="requireAdministrator" uiAccess="false" /&gt;
  </code></pre>
  
  <p>at app.config</p>
  
  <p>However, After I replaced to "requireAdministrator" , I am getting compiling error </p>
  
  <pre><code>ClickOnce does not support the request execution level 'requireAdministrator'.  WindowsApplication2
  </code></pre>
  
  <p><strong>Third</strong>, I went to Computer->manager->service-> and Enable Application experience.</p>
  
  <p>However, it does not work.</p>
  
  <p>I am not really sure what to do for this problem.</p>
  
  <p>Does anybody know any solution ?</p>
  
  <p>thanks</p>