How to host ASP.NET MVC site in a subfolder
asp.net, asp.net-mvc
Solution
Did you create a ASP.NET Application in IIS for this directory? Otherwise ASP.NET thinks the root of your server is the root of your application, not the one in the subdirectory.
Problem
I'm trying to run a little ASP.NET project in a subfolder of my hosting. My domain is www.gorangligorin.com, but i want to run my app in www.gorangligorin.com/testmvc. ASP.NET MVC runs with no problems on the top level, but not in subfolders. The server says this (line 58 is colored red): ``` Line 56: ASP.NET to identify an incoming user. Line 57: --> Line 58: <authentication mode="Forms"> Line 59: <forms loginUrl="~/Account/LogOn" timeout="2880" /> Line 60: </authentication> ``` What can I do to make this ASP.NET MVC website work? This isn't hosted on my computer, so I don't have access to IIS configirations.