Check whether the framework 4.5 / 3.5 has been installed on your machine or not.
Check IIS to see whether the framework is correctly set or not.
Open the Control panel
Click Add/remove features.
Select Role based or feature based installation.
Select the Server from the list, against which IIS needs to be set.
Select Webserver IIS option.
Under Application Development option, check that all the required options are checked and click next.
Check for the correct framework is checked or not.
- Check whether the ASP.NET is enabled for the execution on your machine.
- Check whether the Application is correctly set against your Application deployed.
- Check whether the Application security is correctly set
Note : There are times, when MVC files, given below, are not available. For it, copy the files manually in bin folder from local Application bin folder or enable the copy from local option and during it, publish. These files will automatically get copied to the bin folder.
- System.Web.Http.WebHost
- System.Net.Http
- System.Net.Http.Formatting
- System.Net.Http.WebRequest
- System.Web.Http.WebHost
- System.Web.WebPages