Got precisely the same error and came to this question. As @SpaceBison mentioned in comments, this answer describes the solution – https://stackoverflow.com/a/12867753/404099. I spotted it too late and it misses some steps. This is what worked for me:
Windows Server 2012, IIS 8.5. Should work for other versions too.
- Go to server manager, click add roles and features
- In the roles section choose: Web Server
- Under Security sub-section choose everything (I excluded digest, IP restrictions and URL authorization as we don’t use them)
- Under Application Development choose .NET Extensibility 4.5, ASP.NET 4.5 and both ISAPI entries
- In the features section choose: NET 3.5, .NET 4.5, ASP.NET 4.5
- In the web server section choose: Web Server (all), Management Tools (IIS Management Console and Management Service), Windows Authentication – if you are using any of it
Related Posts:
- How to fix No connection could be made because the target machine actively refused it 127.0.0.1:64527
- failed to load resource: the server response with a status 500 (internal server error)
- applicationhost.config file path in IIS 7, 7.5, 8, 8.5 and IIS 10?
- How can I secure passwords stored inside web.config?
- What is the use of @Html.AntiForgeryToken()?
- Automapper missing type map configuration or unsupported mapping – Error
- CS1617: Invalid option ‘6’ for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default
- What is @section scripts and what it is used for
- MVC Razor @foreach
- Authorization has been denied for this request – New Web API Project
- Effectively use async/await with ASP.NET Web API
- HTTP Error 503, the service is unavailable
- JQuery – $ is not defined
- What is the difference between XAMPP or WAMP Server & IIS?
- What is w3wp.exe?
- JQuery – $ is not defined
- What does ‘IISReset’ do?
- What does ‘IISReset’ do?
- Failed to load PDF document in Chrome
- IIS: Where can I find the IIS logs?
- ASP.NET 5 MVC: unable to connect to web server ‘IIS Express’
- Why is this code throwing an InvalidOperationException?
- Twilio TwilioRestClient does not contain a definition for SendSmsMessage
- How to Fix ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY in IIS on Windows Server 2016
- WCF vs ASP.NET Web API
- how to call jquery selector from outside kendo window?
- Refused to display in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’
- HTTP Error 403.14 – Forbidden – The Web server is configured to not list the contents of this directory
- Assembly’s manifest definition does not match assembly reference
- Refused to display in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’
- System.web.mvc missing
- Access to the path is denied
- Compiler Error Message: The compiler failed with error code -2146232576
- The requested resource does not support HTTP method ‘GET’
- Differences between Html.TextboxFor and Html.EditorFor in MVC and Razor
- Infinite Scrolling in Asp.Net MVC with jQuery / AJAX Issues
- What is the difference between ASP.NET MVC 6 and ASP.NET Core 1.0 and the reason behind the core framework?
- A potentially dangerous Request.Form value was detected from the client
- How to remove error about glyphicons-halflings-regular.woff2 not found
- What is ViewModel in MVC?
- Verify return code: 20 when testing OpenSSL
- How to Determine IUSR Password
- The HTTP request was forbidden with client authentication scheme ‘Anonymous’. The remote server returned an error: (403) Forbidden
- limitations of using @Html.EditorForModel
- What does aspnet_regiis.exe do
- How to bind a model to a kendo Combobox in order to use the models validatation?
- OLE DB Provider for ODBC Drivers Error “80004005′
- How to redirect a URL path in IIS?
- XML Parsing Error: no root element found Location in Console FF
- What is the difference between a web API and a web service?
- jQuery $.cookie is not a function
- Can’t Add View from Controller in VS 2015 : “There was an error running the selected code generator”
- How do I resolve “HTTP Error 500.19 – Internal Server Error” on IIS7.0
- Process exists with ExitCode 255
- Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction
- Bad Request- Invalid Hostname while connect to localhost via wifi from mobile phone
- What is the difference between ASP.NET and ASP.NET MVC?
- ASP.NET MVC Page Won’t Load and says “The resource cannot be found”
- How do I target @Model within a src of an image tag?
- GET request to IIS returns Microsoft-HttpApi/2.0
- Failed to load resource: the server responded with a status of 401 (Unauthorized) /App/AngularJS/angular.min.js
- Cannot open database “test” requested by the login. The login failed. Login failed for user ‘xyz\ASPNET’
- System.Data.SqlClient.SqlException: Login failed for user
- The following sections have been defined but have not been rendered for the layout page “~/Views/Shared/_Layout.cshtml”: “Scripts”
- The following sections have been defined but have not been rendered for the layout page “~/Views/Shared/_Layout.cshtml”: “Scripts”
- The connection to the website was reset. Error Code: INET_E_DOWNLOAD_FAILURE
- Why should I use IHttpActionResult instead of HttpResponseMessage?
- Port 80 is being used by SYSTEM (PID 4), what is that?
- HTML.ActionLink method
- Could not load file or assembly ‘Microsoft.Web.Infrastructure,
- @Html.BeginForm Displaying “System.Web.Mvc.Html.MvcForm” on Page
- Styles.Render in MVC4
- Set space between divs
- System.ComponentModel.Win32Exception: Access is denied Error
- Could not load file or assembly ‘Microsoft.CodeDom.Providers.DotNetCompilerPlatform
- ‘router-outlet’ is not a known element
- Mailto on submit button
- An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode
- MVC5 / C# – Cannot perform runtime binding on a null reference
- The service cannot accept control messages at this time
- What does ModelState.IsValid do?
- PHP Fatal error: Call to undefined function mssql_connect()
- There is no ViewData item of type ‘IEnumerable
‘ that has the key country - Connection string using Windows Authentication
- How do you change session timeout in IIS 8.5?
- What does HTML.Raw do?
- “This operation requires IIS integrated pipeline mode.”
- How to solve “Could not establish trust relationship for the SSL/TLS secure channel with authority”
- What is jQuery Unobtrusive Validation?
- How to open a URL in a new Tab using JavaScript or jQuery?
- Maximum request length exceeded.
- The model item passed into the dictionary is of type .. but this dictionary requires a model item of type
- Cannot attach the file *.mdf as database
- Could not load file or assembly Exception from HRESULT: 0x80131040
- How to connect signalR from angularJs
- Convert from List into IEnumerable format
- ASP.NET MVC controller actions that return JSON or partial html
- The ‘Access-Control-Allow-Origin’ header contains multiple values
- The name ‘ViewBag’ does not exist in the current context – Visual Studio 2015
- Why is HttpContext.Current null?