Accessing Farm property bag throws exception

Oct 6, 2011 at 2:56 PM

I love the concept of this, but I am running into one problem. I receive a null reference exception when I try to view the farm property bag. All of the other property bags work. Here is the stack trace from the ULS:

System.NullReferenceException: Object reference not set to an instance of an object.
at ASP._admin_pbs2010_propertybagssettings_aspx.BuildPropertyTable(Hashtable properties)
at ASP._admin_pbs2010_propertybagssettings_aspx.ViewPropertyBag(String scope)     at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Mar 28, 2012 at 1:39 PM

we are also getting same error, could you please share the resolution?

Sep 12, 2012 at 10:26 PM

I am getting same issue on our server, was anyone able to resolve this issue?

Aug 30, 2013 at 9:11 AM
Edited Aug 30, 2013 at 9:23 AM
Its a null value at propertybag!

See "ADMIN\pbs2010\PropertyBagSettings.aspx" Line 411: "property.Value.ToString()" gives a NullPointer.

Change it to something like: property.Value != null ? property.Value.ToString() : null.