I received the error in the title as a result of the following page:
<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
<atlas:ScriptManager ID="ScriptManager" runat="server">
</atlas:ScriptManager>
In this page I use AJAX controls.
The page that you've put the content control is not a master page based page. Check the top of the page, if you've got html like
<html>
<body>
tags then the likelihood is that you've created a new page rather than a new page based off a masterpage.
I ran into the same issue.
For my case, these 3 steps needs to be followed to fix it:
MasterPageFile="~/MyBasePage.Master" like this. Make sure the attribute is there.<%@ Page Language="C#" MasterPageFile="~/MyBasePage.Master AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="Public.Home" %>
ContentPlaceHolder like this to hold the HTML<asp:ContentPlaceHolder ID="ContentHeader" runat="server"></asp:ContentPlaceHolder>
ContentPlaceHolderID same as the above ID<asp:Content ID="Content1" ContentPlaceHolderID="ContentHeader" runat="server"></asp:Content>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With