I have a custom master page. I want this master page to be applied for an app(sharepoint hosted). The app contains an aspx page.
By default, the aspx inherits the master page as below:
<%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~masterurl/default.master" Language="C#" %>
When I add reference to inherit Seattle.Master as below - the seattle.master is perfectly applied to the app :
<%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~site/_catalogs/masterpage/seattle.master" Language="C#" %>
Same way, if I apply my custom master page(below is the code), it doesnt work. The app throws error.
<%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~site/_catalogs/masterpage/MyCustomMasterPage.master" Language="C#" %>
Note: The Seattle.Master and CustomMasterPage.Master are in the same location.
I want to know, how we can apply custom master page to our sharepoint hosted app in Office 365.
Please suggest
Thank You.