Skip to main content
Tweeted twitter.com/StackSharePoint/status/851618003670249477
edited title
Link
Mathematics
  • 1.8k
  • 6
  • 28
  • 56

Custom aspx page's (i think layouts page or maybe application page) master page not setting properly

Source Link
Mathematics
  • 1.8k
  • 6
  • 28
  • 56

Custom aspx page's master page not setting properly

I added a custom aspx page, it works but my custom master page is not being applied.

My master page resides in site collection only, so I am trying this flag to custom aspx page,

 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddBlue.aspx.cs" Inherits="MyWeb.AddBlue"
 MasterPageFile="~/sitecollection/_catalogs/masterpage/masterpages/mycustom.master" %>

But I am getting this error,

The file '/_layouts/15/MyWeb/~sitecollection/_catalogs/masterpage/masterpages/mycustom.master' does not exist.