Solved

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

Posted on 2011-02-13
4
853 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
  • 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

803 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