Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now