NullReferenceException: Object reference not set to an instance of an object – Microsoft.Office.Server.Administration. UserProfileApplicationProxy. get_ApplicationProperties

Had this problem on all my SharePoint 2010 site.

[NullReferenceException: Object reference not set to an instance of an object.]
   Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties() +134
   Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs() +44
   Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext) +329
   Microsoft.Office.Server.WebControls.MyLinksRibbon.get_PortalAvailable() +44
   Microsoft.Office.Server.WebControls.MyLinksRibbon.EnsureMySiteUrls() +60
   Microsoft.Office.Server.WebControls.MyLinksRibbon.get_PortalMySiteUrlAvailable() +15
   Microsoft.Office.Server.WebControls.MyLinksRibbon.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427

Checked Event Viewer for the log. Event: 8306 SharePoint Foundation error thrown

An exception occurred when trying to issue security token: Could not connect to http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:32843. .</span>

Tried the following steps (not working)

  1. Stopped the User profile sync service
  2. Stopped user profile service application
  3. Recycled SecurityTokenServiceAppPool with re-typing credentials
  4. Started User Profile service
  5. Started Sync service

Resolution

  1. Go to IIS (Internet Information Services) Manager
  2. Turn on “SharePoint Web Services Root” Application Pool
  3. Turn on “SharePoint Web Services” sites
  4. run iisreset via cmd

Worked!

One thought on “NullReferenceException: Object reference not set to an instance of an object – Microsoft.Office.Server.Administration. UserProfileApplicationProxy. get_ApplicationProperties

  1. Najeeb

    Dear,
    When i try to add the \\\”My Task\\\” Web part in My site then it will gives the below error.

    \\\”Server Error in \\\’/\\\’ Application.

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
    Microsoft.Office.Server.WorkManagement.UI.AWIOPUtilities.GetSharedComponentManagerInitializationScript(Page page) +158
    Microsoft.Office.Server.WorkManagement.UI.TaskListControl.GetTaskListInitializationScript(Page page, String clientId, String timelineDataSourceId, Boolean hidden) +30
    Microsoft.Office.Server.WorkManagement.UI.TaskListControl.OnLoad(EventArgs e) +104
    System.Web.UI.Control.LoadRecursive() +94
    System.Web.UI.Control.AddedControl(Control control, Int32 index) +728
    Microsoft.Office.Server.WorkManagement.UI.TaskListWebPart.CreateChildControls() +240
    System.Web.UI.Control.EnsureChildControls() +188
    System.Web.UI.Control.PreRenderRecursiveInternal() +72
    System.Web.UI.Control.PreRenderRecursiveInternal() +239
    System.Web.UI.Control.PreRenderRecursiveInternal() +239
    System.Web.UI.Control.PreRenderRecursiveInternal() +239
    System.Web.UI.Control.PreRenderRecursiveInternal() +239
    System.Web.UI.Control.PreRenderRecursiveInternal() +239
    System.Web.UI.Control.PreRenderRecursiveInternal() +239
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4089

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446\\\”

    What the solution?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

AlphaOmega Captcha Classica  –  Enter Security Code