title: How to avoid necessity of Admin. privileges for Visual Studio with IIS or COM Interop?
body: <p>When Visual Studio is run without admin. privileges and</p>
  
  <p>I am registering .dll for COM interop the error message is:</p>
  
  <pre><code>Cannot register assembly "myassembly.dll" - access denied. 
  Please make sure you're running the application as administrator. 
  Access to the registry key 'HKEY_CLASSES_ROOT\' is denied.
  </code></pre>
  
  <p>I am running a web application on IIS the error message is:</p>
  
  <pre><code>The Web Application Project PSW is configured to use IIS. 
  To access local IIS Web sites, you must run Visual Studio 
  in the context of an administrator account.
  </code></pre>
  
  <p>I have set Visual Studio run as Administarator to avoid these errors. But UAC message annoys me (but I do not want to switch UAC off).<br>
   Is there a  way to run Visual Studio normally and use COM Interop or IIS? I mean e.g. some access rights to registry or IIS or set regasm to run as admin. </p>