altering v4.master w/ Central Admin returns "The type is not registered as safe" on search admin page
Tuesday, December 08, 2009 12:48 AM
I wanted to see if I could alter the v4.master page with static hyperlinks in the left hand nav area on the Central Admin site. Good news is that it worked no errors. (I added a div with href after the </Sharepoint:SPNavigationManager>).
I'm able to navigate to a few pages without any issue, even the user profile page. But when I navigate to the search admin page: /_layouts/ManageUserProfileServiceApplication.aspx?ApplicationIDxxxxx, I get the following error:
The base type 'Microsoft.Office.Server.Search.Internal.UI.SearchAdministration' is not allowed for this page. The type is not registered as safe.
Correlation ID: e316f3ae-8d51-4f6a-846a-91ad41842ff5
Date and Time: 12/7/2009 4:33:04 PM
I've been able to replicate this error twice by reverting my snapshot. I can only assume that static html controls are considered as not safe ONLY on the search admin page.
Why? Is there documentation regarding what I can and can't do with SPD 2010 in regards to the central admin site?)
*edit* navigating to search admin was working prior to v4.master edit
- Edited by drewsclark Tuesday, December 08, 2009 12:51 AM clarification
Tuesday, December 08, 2009 5:00 AMThere are 3 SPD settings that default to FALSE at the site collection level, including CA. These same 3 settings (plus the 4th that allows the use of SPD) are also at the web app level, but they default to TRUE, I believe:
Allow Site Owners and Designers to Detach Pages from the Site Definition
Specify whether to allow Site Owners and Designers to detach pages from the original Site Definition using SharePoint Designer. Site Collection Administrators will always be able to perform this operation.
Allow Site Owners and Designers to Customize Master Pages and Layout Pages
Specify whether to allow Site Owners and Designers to customize Master Pages and Layout Pages using SharePoint Designer. Site Collection Administrators will always be able to perform this operation
Allow Site Owners and Designers to See the Hidden URL structure of their Web Site
Specify whether to allow Site Owners and Designers to view and manage the hidden URL structure of their Web site using SharePoint Designer. Site Collection Administrators will always be able to perform this operation.
Not sure if you had already checked those, or if you were already an SCA, but they can affect what you're doing. I think there is also a safe edit mode that can be sneaky, but I can't remember where that is.
SharePoint Architect || My Blog
Tuesday, December 08, 2009 7:42 AMI'm running as SCA, your comments are correct about the SPD default settings being set to FALSE at the site collection level...and they are set to TRUE in the general settings from central admin, application management.
I will look into your comments regarding safe edit mode in a bit.
Did I mention that when I see this error, it doesn't matter if I revert to a previous version of the master page...I can never get that error to stop and I have to end up reverting to a previous snapshot? I didn't even bother attempting to delete the service app. (I understand that it is beta, just wanting to document what is going on)
Tuesday, December 08, 2009 7:49 AM
"safe edit mode"
Are you referring to the dark and mysterious 'Edit File in Advanced Mode' that absolutely no one knows anything about?
Tuesday, December 08, 2009 8:05 AMIt appears that the search admin site breaks as soon as the page is no longer based on the site definition. This is before the point where v4.master is checked back in, but after when v4.master is saved back to the server. "saving your changes will customize this page so that it no longer based on the site definition. Do you want to continue?"
Also, this time around I had the site settings that you mentioned checked. And I also used 'edit in advanced mode'.
I also attempted to add the div into a different section. Again it is outside of a content placeholder but inside an existing div.
Without a doubt, the search admin gets really cranky if it detects custom master pages.
Tuesday, December 08, 2009 2:41 PMI don't think editing in Advanced mode is the setting I'm referring to. I saw that last night when perusing, but it didn't ring a bell. There is some other setting, but I don't think it's in play here, because you are able to actually edit, save, and check in the file. The safe mode keeps you from actually making the changes as I recall - just wish I could remember what it is. I do believe Asif Rehmani has mentioned it (SPD MVP) here in this forum.
It may just be a bug. Do you hve access to the Office 2010 Beta Connection on MS Connect? If so, I'd post this in the SPD newsgroup and then submit as a bug if you don't get an answer.
SharePoint Architect || My Blog
Tuesday, December 08, 2009 3:38 PMYeah good call, I'll post on the connect site. When I get a response, I'll check if I can post the fix here. Thanks for your help!
Tuesday, December 08, 2009 6:45 PMIt sounds like the Search Admin page has a control on it which is not in the Safe Controls list, so when you customize the masterpage SharePoint doesn't allow the page to load. You should definitely post this to Connect, but I'll also forward this along to a few MS people who might know what's going on.
Elisabeth Olson SharePoint PM - MSFT
Tuesday, December 08, 2009 9:46 PMThe version of sp2010 that I have is 14.0.4536.1000.
I just did a file diff for the v4.master prior and after. The only diff is my div tag & href.
Posting into connect newsgroup now
Saturday, December 12, 2009 7:10 PMit appears that editing the master page for the central admin site is not supposed to be supported.
Saturday, December 12, 2009 7:28 PM
Monday, December 14, 2009 5:53 PMHey Chris, I just got confirmation that altering the master page in CA is going to be blocked after beta 2. As of right now you will be able to alter the master page and have it work in certain areas, but that will be blocked going forward.
If you want to duplicate this, just add a div tag to the v4.master with static text or a href tag.
- Marked As Answer by drewsclark Monday, December 14, 2009 5:53 PM