Solved

Unknown error (security validation) when modifying user permission on a master page?

Posted on 2011-02-13
4
857 Views
Last Modified: 2012-05-11
We have a inner master page wth custom css that our departments are "supposed" to be able to edit however it is not working that way.
I am the farm administrator and site collection admin.  I went to remove a user from the master page and received an error.  Can you tell me what might be causing this and how I can fix this...
The only workaround I have right now is to turn off security validation in Central Admin but I can't do this each time a user needs to add a user or add an object to a library...

System.Runtime.InteropServices.COMException: The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.  
 at Microsoft.SharePoint.Library.SPRequestInternalClass.UpdateMembers(String bstrUrl, UInt32 dwObjectType, String bstrObjId, Guid& pguidScopeId, Int32 lGroupID, Int32 lGroupOwnerId, Object& pvarArrayAdd, Object& pvarArrayAddIds, Object& pvarArrayLoginsRemove, Object& pvarArrayIdsRemove, Boolean bRemoveFromCurrentScopeOnly, Boolean bSendEmail)    
 at Microsoft.SharePoint.Library.SPRequest.UpdateMembers(String bstrUrl, UInt32 dwObjectType, String bstrObjId, Guid& pguidScopeId, Int32 lGroupID, Int32 lGroupOwnerId, Object& pvarArrayAdd, Object& pvarArrayAddIds, Object& pvarArrayLoginsRemove, Object& pvarArrayIdsRemove, Boolean bRemoveFromCurrentScopeOnly, Boolean bSendEmail)
0
Comment
Question by:swtjen1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34889612
They are probably using custom code, and in that custom code the yare not using AllowUnsafeUpdates correctly.

http://www.sharepoint-tips.com/2007/09/security-validation-for-this-page-is.html
0
 

Author Comment

by:swtjen1
ID: 34920644
Well I'm so glad the consultants used custom code so that they could leave me with it.

How do I fix this where it can allow safe updates???
0
 
LVL 14

Accepted Solution

by:
KoenVosters earned 500 total points
ID: 34923977
You will have to implement the solution in the code, recompile, test and redeploy.
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34923978
You will have to implement the solution in the code, recompile, test and redeploy.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question