I just created a new WebApplication & Site Collection in sharepoint.
Note : WebApplication uses Claims Authentication mode, Custom Trusted Identity Provider for my application.
In powershell when i try to access $site.RootWeb.AllProperties it is returning null
$site.RootWeb.AllProperties.Add("a", "1")
You cannot call a method on a null-valued expression. At line:1 char:21
+ $site.RootWeb.AllProperties.Add <<<< ("a","1")
+ CategoryInfo : InvalidOperation: (Add:String) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Does anyone knows why this occurs?
