1
我遇到了MVC應用程序的問題。當我發佈它時,出現以下錯誤:IIS 7找不到_Layout.cshtml
The layout page "~/Views/Login/_LayoutLogin.cshtml" could not be found at the following path: "~/Views/Login/_LayoutLogin.cshtml".
我遇到了MVC應用程序的問題。當我發佈它時,出現以下錯誤:IIS 7找不到_Layout.cshtml
The layout page "~/Views/Login/_LayoutLogin.cshtml" could not be found at the following path: "~/Views/Login/_LayoutLogin.cshtml".
我有同樣的問題一次。
我發現這是一個IIS權限問題。我去了應用程序池和身份驗證選項。然後,我編輯的匿名身份驗證憑據到「應用程序池標識」
這裏是另一篇文章有關於解決方案 https://stackoverflow.com/a/6156675/2430118
佩德羅一個更好的解釋回答
這工作正常!謝謝! –
那麼,是否存在? – SLaks
是的,在相同的路徑。我認爲這可能是關於某些服務器權限。 –