Homepage error in new MVC project

I am just creating a new MVC project and haven’t changed anything, but when I try to view the ChangePasswordSuccess view in design mode, I get an error:

The page has controls that require a Master Page reference, but none is supplied. 

There are no controls on the page except the content control and the literal, and it has a link to the main page. Does anyone know what?

 <%@Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="ChangePasswordSuccess.aspx.cs" Inherits="BasicMvcApp.Views.Account.ChangePasswordSuccess" %> <asp:Content ID="changePasswordSuccessContent" ContentPlaceHolderID="MainContent" runat="server"> <h2>Change Password</h2> <p> Your password has been changed successfully. </p> </asp:Content> 
0
source share
1 answer

I did not have time to notice how I noticed. The ViewPasswordSuccess page directive does not have the word Page by default.

+2
source

All Articles