Sorry something went wrong the file masterurl custom.master is not a valid master page

Sorry something went wrong the file masterurl custom.master is not a valid master page

This SharePoint 2013 tutorial explains, how we can resolve the master page issue which comes while opening a SharePoint 2013 site. Recently when I opened a SharePoint 2013 migrated site, on one page it gave me an error which says: Sorry something went wrong the file masterurl SharePoint 2013.


New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 Subscription & Try out all the features

Sorry, something went wrong
The file ‘~masterurl/custom.master’ is not a valid master page.
TECHNICAL DETAILS

Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: 24db529d-8ef0-a03f-6251-c229a22d7428

Date and Time: 1/7/2016 1:57:58 AM

Solution:
Open your SharePoint 2013 page using SharePoint 2013 designer. Then you will be able to see a tag like below:

<%@ Page language=”C#” MasterPageFile=”~masterurl/custom.master”

Sorry something went wrong the file masterurl custom.master is not a valid master page
Sorry something went wrong the file masterurl custom.master is not a valid master page

Now here change custom.master to default.master in the MasterPageFile tag.

<%@ Page language=”C#” MasterPageFile=”~masterurl/default.master”

It should look like below:

Sorry something went wrong the file masterurl custom.master is not a valid master page
Sorry something went wrong the file masterurl custom.master is not a valid master page

Now Save and Publish the page and then refresh the page, the error Sorry something went wrong the file masterurl should not come.

You may like following SharePoint 2013 master page tutorial:

Hope this will be helpful to resolve error Sorry something went wrong the file masterurl SharePoint 2013.

Check out Best Alternative to InfoPath -> Try Now

FREE SHAREPOINT 2019 PDF

(Installation & Features)



About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →