title: System.unauthorizedaccess while running .NET setup and deployment application
body: <p>I have a small <a href="http://en.wikipedia.org/wiki/.NET_Framework" rel="nofollow">.NET</a> application deployed using "Setup and Deployment" wizard. The problem is that when I run it with the user having administrator rights, it runs without any errors, and if the user doesn't have administrator rights then it gives the error</p>
  
  <blockquote>
    <p>Application encountered an error and needs to close</p>
  </blockquote>
  
  <p>When I check the error report, it says:</p>
  
  <blockquote>
    <p>P9: System.unauthorizedaccess</p>
  </blockquote>
  
  <p>I even checked the option "Install to Everyone", but to no use.</p>
  
  <p>What might be the issue?</p>