Wednesday, June 3, 2009

'Object reference not set to an instance of an object' error for site collection admin

. Wednesday, June 3, 2009
3 comments

Last night I received an issue wherein a site collection admin was getting the below error only on the home page of her site. We tried with all WFEs and even with a test user account but could not replicate the issue.

 

image

 

How I resolved it: -

Since she was a site collection admin, it was safe to give her full control anywhere. The home page was a publishing page that uses masterpages and page layouts. So I went to the master page gallery and provided her full control and bingo it worked ! Next day she again received the same error. One of our team member went into the checked out files section and took ownership of all her files. And shoot, this time he was able to replicate the issue. we did a simple Binary search and were able to find out the culprit file and took it our of the library. Next thing, client regained her access. :)

Error while checking out a file - "file does not appear to be checked out"

.
2 comments

If ever we see a situation where an implicit lock is active, going to “Edit Properties” on the document (which requires checkout) is the only way I know to get the actual NAME of the person with the implicit lock.

Now if the user comes back and says she has closed Excel we still need to check because Excel and Outlook might be in a zombie state (running in Task Manager Process tab, but without having any visible windows on the desktop)  In these rare cases the lurking EXE may still have the SharePoint file open over the network.  So even though the end user swears she is no longer editing the file, the Windows client may still have the fill open and would be continually refreshing, thus maintaining the implicit lock.  Sometimes we may need to have the end user reboot to release the zombie held lock.

 

NOTE:: The lock can be removed only by that user and only through the system used to place the lock.

Add a site in network places as a web folder

.
0 comments

There are times when we want to add a site as a new network place and browse our way around. The best way of doing this it to add the following URL in network place wizard: -

e.g. http://<site-name>/default.aspx

make sure you add default.aspx to the site name otherwise the site will be added as a normal folder (as in open in explorer view mode of SharePoint UI) and not in webfolder format.

Site added as a web folder.

image

Site added as a normal folder.

image

Read only users get a different page formatting, page view.

.
0 comments

There would be times when a site would appear different to site collection admins and the Read only users. The first troubleshooting step in this would be:-

 

1) Check if the home pages is properly published..

2) If yes, then check its master page and make sure it is published and approved. This will make the changes visible for all users.

3) Check if the images, stylesheets, etc. are not in minor version formats or draft formats.

4) If the page still appears different then make the following changes in the style library.

5) change the versioning settings of style library to show draft versions to users with read access.

6) Above step should be taken if the draft versions cannot be located and are rooted deep down in the library's hierarchy.