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:
■Stop the User Profile Synchronization Service
■Open IIS (inetmgr)
■Click on the server name and select Authentication
■Selected Anonymous Authentication then choose Edit
■Click the specific user, then enter “IUSR”
■Add the service account to Local Admin group on the server
■Add the service account to all the FIM groups
■add the service account to the WSS_WSP and WSS_Admin_WPG group
■Perform an IISRESET
■Create a new User Profile Synchronization Service Application
■Started the User Profile Synchronization Service
Stop the User Profile Synchronization Service
First you have to start SharePoint PowerShell
■Go to Start
■Microsoft SharePoint 2010 Products
■Right click on SharePoint 2010 Management Shell
■Choose “Run as Administrator” from the context menu
Type in Get-SPServiceInstance then capture the GUID of the User Profile Synchronization Service as shown below
Now that you have the GUID, type in Stop-SPServiceInstance as shown below…
专注于互联网、物联网技术架构及管理
https://www.cnblogs.com/csts