Partager via


SharePoint Issue: Unable to oben the Site (Object null reference Error) Solution

Issue:

Server Error '/' Application

Object reference not set to an instance of an object

Description: An unhandled exception was generated during the execution of the current web request. please review the stack trace for more information about the error and where it orginated 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 using the exception stack trace below.

Stack Trace:

[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) +134

Microsoft.office.server.WebControls.MyLinksRibbon.get_Portal Available() +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.Page.ProcessRequestMail(Boolean includeStagesBeforeAsyncpoint, Boolean includeStagesAfterAsyncpoint) +2427

 

Solution:

If  you just doing Some POCs and got stuck with the above error mentioned problem.

Just do one thing

1. Go to Central Admin->Manage Service Application->delete the User Profile Service.

This will mak your site work and you can start Playing around.

Also if you want you User Profile to Start again, follow below link

https://myspexp.com/2011/04/28/user-profile-synchronization-servicehangs-on-starting-i-fixed-it/

Comments

  • Anonymous
    February 19, 2013
    Deleting the User Profile Serivice Application worked for me. Thanks Kunal for the temparary solution.

  • Anonymous
    October 27, 2013
    Thanks :) it worked

  • Anonymous
    February 05, 2014
    You saved me lot of headache. Thanks

  • Anonymous
    April 02, 2015
    Following article talks about a little different approach towards the issue www.grishbi.com/.../sharepoint-2010-an-unexpected-error-has-occurred