Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [unsafe-updates]

The tag has no usage guidance.

0
votes
1answer
28 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, ...
1
vote
2answers
357 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 ...
0
votes
1answer
37 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). ...
1
vote
1answer
74 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 ...
1
vote
1answer
152 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, ...
1
vote
1answer
398 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(...
7
votes
2answers
3k 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 ...
7
votes
2answers
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 ...
2
votes
2answers
2k 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....
1
vote
1answer
219 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? ...
0
votes
1answer
497 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 ...
0
votes
1answer
128 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 ...
2
votes
1answer
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 ...
1
vote
1answer
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 ...
3
votes
2answers
899 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 ...