Click here to Skip to main content
12,399,362 members (60,317 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked

Object null reference error when opening the Site / Document Library in SharePoint

, 12 Oct 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
How to fix the error.
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 originated in the code.

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

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]  +134 +44 ServiceContext) +134 
// -------------------------------------------------------------------------------------------------------------------

This error occurred in SharePoint installation on Windows Home Premium. But when I searched I found out this is happening because of the incorrect configuration of user profile service. Therefore I delete the user profile service application which help me to solve the issue.

Go to Manage Service Application in the Central Administration.


Delete the User Profile Service Application.



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Sri Lanka Sri Lanka
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralMy vote of 1 Pin
Ben Schowe21-Nov-14 2:51
memberBen Schowe21-Nov-14 2:51 
GeneralMy vote of 5 Pin
Albarhami27-Nov-12 23:24
memberAlbarhami27-Nov-12 23:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 12 Oct 2012
Article Copyright 2012 by Melick
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid