title: Why is my ASP.NET Application only showing a directory listing when I try to run it?
body: <p>I opened Visual Studio 2012 Express for Web on my Windows 7 machine. I created an ASP.NET Empty Web Application named "EduPortal". I added a Web User Control to the project. In this User Control I put a button and a textbox and a button in a form. This is the code I used:</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="EduPortal.WebUserControl1" %&gt;
  
  &lt;form runat="server"&gt;
  &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
  &lt;br /&gt;
  &lt;asp:Button ID="Button1" runat="server" Text="Button" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I then built and ran the program. I got an error page from IIS Express, which instructed me to run these two commands on a command prompt in the IIS Express Install Directory:</p>
  
  <pre><code>appcmd set config /section:system.webServer/directoryBrowse /enabled:true
  appcmd set config ["SITE_NAME"] /section:system.webServer/directoryBrowse /enabled:true
  </code></pre>
  
  <p>The first command ran without error. The second command, however, gave this message:</p>
  
  <pre><code>ERROR ( message:Cannot find SITE object with identifier "[SITE_NAME]". )
  </code></pre>
  
  <p>Anyway, I ignored the error. I rebuilt my project in Visual Studio. Now when I run the project I get this page:</p>
  
  <p><img src="https://i.stack.imgur.com/KGlNo.png" alt="enter image description here"></p>
  
  <p>Why is this happening, and what steps can I take to fix it?</p>