Knowledgebase: Windows Reseller Plesk
Install Asp.Net MVC 5.0 to Deploy App on Windows Server 2008 2012
Posted by Premium Reseller on 29 June 2015 11:14 PM

When latest Asp.net 4.5.2 is installed on server, the server already supports MVC 5.0 web application.

The website needs to be configured with Asp.net 4.5 integrated mode pipeline.

If you upload files from Visual studio website to server, you may get error

"HTTP Error 403.14 - Forbidden

The Web server is configured to not list the contents of this directory"

The error means website does not have default home page and additional configuration is required in web.config file for IIS to understand how to process MVC website.

Open website web.config file, look for system.webserver section and add the following configuration:

<system.webServer>
<modules>
<remove name="UrlRoutingModule-4.0" />
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
</modules>
</system.webServer>

If website still does not show correctly, try adding more configuration below

<system.webServer>
    <modules  runAllManagedModulesForAllRequests="true">
      <remove name="FormsAuthentication" />
      <remove name="UrlRoutingModule-4.0" />
      <add name="UrlRoutingModule-4.0"
          type="System.Web.Routing.UrlRoutingModule"
          preCondition="" />
      <remove name="BundleModule" />
      <add name="BundleModule"
          type="System.Web.Optimization.BundleModule" />
    </modules>
</system.webServer>

 

(1 vote(s))
This article was helpful
This article was not helpful