Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [unsafe-updates]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
70 views

Error in removing SharePoint Solution

I am trying to remove the user solution. I used site.Solutions.Remove(Solution) But I am getting error The security validation for this page is invalid. Click Back in your Web browser, ...
notorious's user avatar
  • 156
1 vote
2 answers
2k views

Is "AllowUnsafeUpdates" available in SharePoint Online?

There are a lot of other discussions on AllowUnsafeUpdates, but none mention SharePoint Online. Is AllowUnsafeUpdates available in SharePoint Online? If not, are there alternatives or manual actions ...
Boris Zinchenko's user avatar
0 votes
1 answer
120 views

Throwing error while adding web part into page. ( not registered as a safe )

I have created a custom webpart and deployed it in SP2013 site.when I am trying to add the web part it throws an error like, "The type could not be found or it is not registered as a safe". - (PFA). ...
PGP's user avatar
  • 1,125
1 vote
1 answer
124 views

SPListItem update conflict

Task: when user updates an item, change synchronously another hidden field of this item. Problem: save conflict occurs AFTER update is called (not on this line). I subscribe on EventReceiver's ...
Alex Zhukovskiy's user avatar
1 vote
1 answer
331 views

AllowUnsafeUpdate on POST request

I am getting good old "The security validation for this page is invalid" on Sharepoint 2013, while updating list in Sharepoint, due to button click on an application page. In browser, I clearly see, ...
Rustem Mustafin's user avatar
1 vote
1 answer
466 views

Creating website errror "The security validation for this page is invalid"

I have issu with the creating a website, the error says: "The security validation for this page is invalid" SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(...
Shkipper's user avatar
  • 2,105
7 votes
2 answers
4k views

Error with /_layouts/assetportalbrowser.aspx

The AssetPortalBrowser.aspx page is throwing an error when rendering list or library content (screenshot and ULS output below). This happens regardless of the site opened from or the list/library you ...
Jesus Shelby's user avatar
  • 10.9k
7 votes
2 answers
5k views

ValidateFormDigest - when exactly does it need to be called?

Can someone explain to me exactly when and why I need to call SPUtility.ValidateFormDigest? Contrary to the spec, which says you need to call it before elevating privileges, I've had the following ...
Rawling's user avatar
  • 880
2 votes
2 answers
4k views

Unable to update list item - Additions to this web site have been blocked

I am developing a SharePoint job. In the public override void Execute(Guid targetInstanceId) method, my code goes: SPSecurity.RunWithElevatedPrivileges(delegate() { int count = this.WebApplication....
Boris's user avatar
  • 1,410
1 vote
1 answer
226 views

What are "unsafe updates" for list items?

In the SharePoint 2010 server-side object model the SPWeb Class has a property "AllowUnsafeUpdates". What are unsafe updates in connection to list item changes? How are they to be delt with in code? ...
Robert Jost's user avatar
0 votes
1 answer
548 views

SPFile Update fails, Exists returns true

I have a block of code wrapped in an if: mySite.AllowUnsafeUpdates(); SPFile mySPFile = web.GetFile(someURL); if (mySPFile.Exists) /*returns true, enters code block*/ { //... make some updates ...
sq33G's user avatar
  • 101
0 votes
1 answer
172 views

Foundation vs Enterprise Cumulative updates

I'm going through my test builds and I am curious if I should be installing Foundation CU's then installing Enterprise CU's on top of them? I am working with Enterprise SP and to me it doesn't make ...
Jacob A's user avatar
  • 701
2 votes
1 answer
3k views

Warning about unsafe content when saving wikipage using Sharepoint Designer

After editing a wiki page using SharePoint Designer 2010 I have stared to get the message "Content in the embedded form field maybe changed by the server to remove unsafe content. Do you want to ...
Ivar_'s user avatar
  • 171
1 vote
1 answer
2k views

Updating managed metadata field issue

I'm copying documents between document libraries in different site collections. I have saved my source library template, uploaded to destination site collection and created library based on that ...
jjczopek's user avatar
  • 1,537
3 votes
2 answers
986 views

Why do I get a security validation invalid error updating a field from a feature receiver?

Trying to change the title field of a document library to be required..doesn't want to work. SPList docLib = web.Lists["Process Aids"]; SPField field = docLib.Fields["Title"]; field.Title = "Display ...
WCHolland's user avatar
  • 305