In this article,i am going to talk about one of SharePoint development issue with object model if you faced this annoying error :
“The settings for this list have been recently changed. Refresh your browser before editing this list”
Here a sample scenario:
* You have a C# application from which you are frequently uploading documents to a SharePoint Foundation 2010 Document Library while updating or deleting the list item getting this error.
You may encounter possible 3 issue:
1) Your event recievers is executing something wrong.
Check your event handlers code. for detect the problem you may try to remove the event reciever(s) and test that issue is happening again.
It may cause by some buggy code belongs to triggered eventreciever or this event reciever has activated more than one time or not an appropriate time.if you have this kind of issue
i suggest that use SPEventReceiverBase.EventFiringEnabled property to prevent unnecessery code execution when your event recievers triggered.
2) You may changing some property of a list which is not to done in item level operations.
somehow you change high level setting or property of this list object like SPList.EnableThrottling property , by design you should get fallowing error “The settings for this list have been recently changed. Refresh your browser before editing this list.” This is same scenario as while UserA who already editing a document metadata , changing Versioning settings of the current list by an administrator, UserA will get the error when he/she try to save his/her changes.
Check your source code for to be dangerous changes of list settings.So there is not any way to escape from this error while changing this kind of settings .Main rule is simple do not change list settings while you are working on list items.
3) It caused by a bug. Consider the following scenario:
- You click the Variation link to configure the variation setting in a Windows SharePoint Services 3.0 publishing site.
- You click the Variation Labels link to create two variation labels.
- You click the Create Hierarchies link to create hierarchies.
- You create a new publishing page in the source variation site.
- You publish the new publishing page, and then you wait until the page propagation ends.
- You edit the page in the destination variation site, and then you try to save it.
In this scenario, you receive the following error message.it is fixed by June CU 2011
If you have another one , please inform me .)