title: Register .NET Framework 4.5 in IIS 7.5
body: <p>Pieces of the puzzle:</p>
  
  <ul>
  <li>Windows 7</li>
  <li>.NET Framework 4.5 (installed)</li>
  <li>IIS 7(Version 7.5.7600.16385)</li>
  <li>Visual Studio (Ultimate 2013)</li>
  <li>MVC4 (multiple projects in the solution)</li>
  </ul>
  
  <p>The solution I'm running in Visual Studio works and runs as expected with IISExpress.</p>
  
  <p>To set up my site to use IIS, I tried the following steps:</p>
  
  <ol>
  <li>Right-click the projects in the solution that are currently being hosted by IISExpress.</li>
  <li>Click Properties.</li>
  <li>Toggle the Servers drop-down from IISExpress to Local IIS</li>
  <li>Try to build/run the application</li>
  </ol>
  
  <p>At this point, I get an <code>HTTP 500.21</code> error.</p>
  
  <p>I have also tried to run <code>aspnet_regiis.exe -i</code> using Visual Studio's command prompt (as an Administrator), but each time I run the command, I receive the following error:</p>
  
  <blockquote>
    <p>Command 'aspnet_regiis.exe' is not valid.</p>
  </blockquote>
  
  <p>I also confirmed that I do have the right <code>aspnet_regiis.exe</code> installed (by checking <a href="http://msdn.microsoft.com/en-US/library/k6h9cz8h%28v=vs.100%29.ASPX#findingthecorrectversion">here</a>) (.NET Framework version 4 (64-bit systems)).</p>
  
  <p>What do I need to do to register .NET Framework 4.5 in IIS 7.5?</p>