Link to home
Start Free TrialLog in
Avatar of Isaac
IsaacFlag for United States of America

asked on

Masterpage unexpected error

Hello All,

This is really baffling me and I don't know how to fix it.  I have tried everything to no avail.

I created a web part page in SharePoint 2010.  I want to apply a single master page to just one file, so I take the following steps.

Step 1
I copy the default master page and rename it to "ieforce.master" and make the one line change that I need to make.
I then save and publish it to sharepoint and then approve it.

Step 2
I open up the  web part page that I want to apply my new master page to and change the following line
<%@ Page Language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WikiEditPage" MasterPageFile="~masterurl/default.master" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full"       %>

Open in new window


to

<%@ Page Language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WikiEditPage" MasterPageFile="~site/_catalogs/masterpage/ieforce.master" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full"       %>

Open in new window


I then get the following error:
User generated image
Any idea why that is?
I have been struggling with this for 3 days.
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Please use ULS viewer to get the details for that correlation ID and post it
https://www.microsoft.com/en-us/download/details.aspx?id=44020
Avatar of Isaac

ASKER

I do not have access to the server to get details for the correlation ID.
I have seen that error also. I use SharePoint designer and attach the masterpage to the single page in that manner.

Hope that helps...
Avatar of Isaac

ASKER

No that did not help.  You're sharing with me the solution that I am having problems with.
ASKER CERTIFIED SOLUTION
Avatar of Walter Curtis
Walter Curtis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Isaac

ASKER

Thank you! That makes sense.
Thanks, glad that helped...