title: IIS7 Virtual Directory gives 403 Forbidden Access Denied
body: <p>I have some issues with IIS7 setup that I hope someone can help me with.</p>
  
  <p>I am developing an ASP.NET MVC5 application which consist of 1 web application and 1 web api application for handling REST calls. They are on the same solution in Visual Studio. While developing, they run on the localhost with two different ports as usual.</p>
  
  <p>Now that I am deploying to a web server, I planned to have them running like this:</p>
  
  <p>Web app: <a href="http://mydomain.com" rel="nofollow">http://mydomain.com</a>
  Web api: <a href="http://mydomain.com/api" rel="nofollow">http://mydomain.com/api</a></p>
  
  <p>So I created a site on IIS for the web app and virtual directory under that site with an alias of "api".</p>
  
  <p>The web application runs without issue and I can put a static test HTML file under api folder and it runs fine. But when I put all my published file in api folder, I got 403 Forbidden Access Denied.</p>
  
  <p>My questions: can I run an ASP.NET application on a Virtual Folder? If so, what I might have done wrong? The folder permissions are the same between ./mydomain.com and ./mydomain.com/api folders.</p>