Unable to display page: The extension '.cshtml' may be incorrect

Created:

2017-03-20 21:19:27 UTC

Modified:

2017-08-08 13:24:42 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to display page: The extension '.cshtml' may be incorrect

Applicable to:

  • Plesk Onyx for Windows

Symptoms

Upon opening .cshtml webpage in a browser, the following error is displayed:

Server Error in '/' Application.

This type of page is not served.

Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.cshtml' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

Requested URL: /index.cshtml

.cshtml MIME type is enabled via Plesk interface.

Cause

The required web framework is not installed.

Resolution

Install ASP.NET Web Pages with Razor Syntax web framework from the official Microsoft website .

Have more questions? Submit a request
Please sign in to leave a comment.