How to Resolve MVC Related Error in Windows

How to Resolve MVC Related Error in Windows Hosting Plan. This case is application for all HostingRaja customers, Who has taken Windows Shared or Virtual Private Server from us.
 

assembly.png

Cause of MVC Related issues:

  1. Missing MVC Module in Web.config file.

  2. Missing assembly .dll files in website document root folder.

How to Fix the 500 Internal Server Error:

1) By updating MVC module code in Web.config file can be resolved. The code is given below.

<system.webServer>

<modules runAllManagedModulesForAllRequests="true"/>

</system.webServer>

2) Download the missing .dll files and upload under 'bin' directory of the website.

Examples of DLL Files

System.Web.Http.DLL

System.Web.Mvc.dll

System.Net.Http.WebRequest.dll

System.Net.Http.Formatting.DLL