I have some issues with IIS7 setup that I hope someone can help me with.
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.
Now that I am deploying to a web server, I planned to have them running like this:
Web app: http://mydomain.com Web api: http://mydomain.com/api
So I created a site on IIS for the web app and virtual directory under that site with an alias of "api".
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.
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.