title: Deploying ASP.NET Web API App to IIS 7 On Different Server
body: <p>I have been literally stuck for hours trying to deploy a Web API app to IIS. I can not believe there are no useful tutorials online anywhere that I can find. Here is my situation.</p>
  
  <ul>
  <li><p>I have a VERY basic Web API app. It is using .NET Framework 4.0. It doesn't do anything I just want to see the home page at this point.</p></li>
  <li><p>I am developing it in Visual Studio 2012 on my local machine. I can hit my localhost and see the home page, even post some data through Fiddler works great.</p></li>
  <li><p>I publish the solution using Build->Publish to my local file system.</p></li>
  <li><p>I then copy and paste everything in that directory to my web server (actually using a repository but for simplicity sake)</p></li>
  <li><p>I created a brand new application pool in IIS. .NET 4.0 Integrated.</p></li>
  <li><p>I placed the folder that contains my published code inside of the directory of my main website. The folder name is WebAPI.</p></li>
  <li><p>I created a new website in IIS, attached to that new app pool I created.</p></li>
  <li><p>I start the website, browse it on localhost and everything works perfectly.</p></li>
  <li><p>I try to go to the website externally "website.com/WebAPI/api" and get a</p>
  
  <p>403.14 - Forbidden The Web server is configured to not list the contents of this directory.</p></li>
  </ul>
  
  <p>I'm sure I'm doing something wrong, I've never deployed an MVC app to IIS on another server. I'm able to deploy it just fine on my local machine through IIS too. What am I missing? Thanks!</p>
  
  <p>Edit: Yes, my server has other .NET 4.0 apps running just fine.</p>