简体   繁体   中英

“The file .master does not exist”

I have a website which uses .net framework 4.5. Using Visual Studio 2013, I have no issues to run it. However, when I publish it, I get the following error message: "the file '/Views/Shared/Admin.Master' doesn't exists.", but it does exists.

Linha 1:  <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
Linha 2:  
Linha 3:  <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

Any idea about it, if I need to do something before publishing, or if I need to configure something in IIS? Thanks a lot.

I faced the same issue, the application build and run correctly on visual studio 2013, but give that error when publishing.

To fix that I changed the build action of the master-page from None to Content

Probably IIS issue. Go to your IIS, go to your website. Once there, in the IIS tab, find Authentication. Open it. Enable ASP.NET Impersonation.

It happens to me sometimes. Is a problem of rights

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM