I have published my MVC 5 application and copied all the files from local PC to Server D drive.
Server is Windows Server 2008 SP1.
I installed .NET Framework 4.5 on server.
I created a separate Application Pool with .NET Framework 4.0 in Integrated Mode.
In IIS, I right-click Sites and select New Web Site.
In the physical path I am pointing to the same D Drive on Server where published files are located.
When I try to browse, it gives error:
No default document configured.
Is this because Windows Server Service Pack 2 is not installed? Does it require SP2 for MVC 5 application?
I have also registed ASP.NET 4.0 by running:
aspnet_regiis -i
from the command prompt.
This is a known problem when deploying MVC application on Windows Server 2008 R2 regarding extension less URLs: You can find more in this article:
http://blogs.msdn.com/b/tmarq/archive/2010/04/01/asp-net-4-0-enables-routing-of-extensionless-urls-without-impacting-static-requests.aspx
You need to run the hotfix from Microsoft in this link: https://support.microsoft.com/en-us/kb/980368
then add the following in your web.config file: