2016-12-30 10 views
0

Я разрабатываю веб-сайт mvc C# episerver. Сайт загружается в IIS 10/Win 10 с выделенным пулом приложений и т. Д. После того, как я внес некоторые изменения в код и в конкретный .cshtml, который относится к макету, я получаю следующую ошибку на всех страницах, разделяющих этот макет.IIS 10 не удается проанализировать файл .cshtml

The following file could not be rendered because its extension ".cshtml" might not be supported: "~/Views/Shared/Layouts/_Root.cshtml".

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The following file could not be rendered because its extension ".cshtml" might not be supported: "~/Views/Shared/Layouts/_Root.cshtml".

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Все остальные страницы с различными макетами работают нормально. Также, если я загружаю сайт с визуальной студией, iisexpress отлично работает.

У кого-нибудь есть идеи, почему мой IIS волнуется?

ответ

1

According to this решение очистить кэш-файлы asp.net

Удалить файлы внутри папки:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\

+0

я как-то не удалось проверить это решение, хотя я наткнулся на него на моих результатах Google , Благодаря! – Agraell

 Смежные вопросы

  • Нет связанных вопросов^_^