Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8186889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:22:39+00:00 2026-06-07T02:22:39+00:00

Working with Sharepoint 2010, I have a class that inherits SPPersistedObject with various settings:

  • 0

Working with Sharepoint 2010, I have a class that inherits SPPersistedObject with various settings:

[Serializable] class Settings : SPPersistedObject
{
    [Persisted] private string setting1; // getters and setters etc. exist for each field
    ...
}

These settings (properties) are supposed to be globally accessible from the application code. Every time the value of one or more of them changes, Update() method is called so that other parts of the code (i.e. other aspx pages) may read the correct, up-to-date value.

This works fine as long as I’m only accessing properties within the same application that updated them, e.g.: http://abc:5100/.../test.aspx updates Settings.Setting1, calls Update(); and other :5100 pages will now see the new value in their code.

However – and this is my problem – when I read Settings.Setting1 property from, say, http://abc:26233 /.../temp.aspx, the old value (pre-Update) is retrieved instead of the new one. This leads me to believe that the property is read from some kind of in-memory copy instead of from the updated store. The new value is retrieved only if I manually use ‘iisreset /restart’ beforehand, but that is not desirable.

I would greatly appreciate it if someone has any idea on how to update/read the properties so that the change is reflected across the entire farm, i.e. the value is read from a common permanent store.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:22:41+00:00Added an answer on June 7, 2026 at 2:22 am

    Solution found by w128:

    The solution is to use the SPPersistedObject.Clone() method on your class, e.g. (not the actual code, but illustrates the point):

    Settings s = (Settings)SettingsObj.Clone();
    return s.Setting1; // returns updated value
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three lists on Sharepoint 2010 and I have working code that gets
I have a workflow that I'm working on SharePoint 2010 and I've built a
I have just started working with SharePoint 2010(you could say a bit of a
I am working with SharePoint 2010 form library. I have a drop down column
I am working on a SharePoint 2010 integration that has an SPItemEventReceiver for handling
I am working with SharePoint 2010 and ECMAScript. I have added a customaction to
I am working on a SharePoint 2010 Server and i have following items in
I'm working on a SharePoint 2010 project. We have a usercontrol to include all
I have been working on some customisation for SharePoint 2010 using Visual Studio. My
I have configured FBA on Sharepoint 2010 site. And its working fine when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.