Featured Post

Las Vegas: SharePoint Conference 2012 Day 1

The first day of conference has passed and there’s been given quite some information on all fronts! But like most mornings it started with breakfast. In a large hall the morning meal was provided and hundreds of people shared tables, a good start to swap stories. With a filled stomach it was off the large hall for the keynote. Assuming everybody was there, since it was the only session at that time, the hall was filled with about 10,000 people. The kickoff was a intro movie on SharePoint 2013, with a dozen meters wide screen, the loud music and the deep bass I did end up having a few chickenbumbs. It started with some general information on SharePoint and where it’s standing now, Jeff Teper followed with some new added features to the 2013 edition. Search, tasks and off course social was mentioned here. After that there was a big thumbs up to the Yammer folks and their collaboration with the Microsoft team. SharePoint and Yammer share a whole bunch of functionality in the new version. You can now show Yammer messages in your SharePoint feed and vice versa. Also linking your SharePoint documents in your Yammer feed is no more than a few clicks and you can simply view the document in Yammer by using Office Web Apps. After a some notes on Office 365 and the performance upgrades in the new SharePoint version it was off to the breakout sessions. I started with a session from Dan Holme on tips, tricks and scripts on the SharePoint 2013 installation. A few new features were highlighted; request management (http://www.harbar.net/articles/sp2013rm1.aspx), distributed cache (http://technet.microsoft.com/library/jj219700(office.15).aspx) and the increased requirements for the query components (http://technet.microsoft.com/en-us/library/jj219620.aspx). Followed by the creation of the SQL answer file. After the creation of the SQL answer file it was on to the SharePoint 2013 installation process, which was roughly the same as its predecessor. After a few more tips and examples on scripts the session was concluded. The final session of the day was about adopting SharePoint 2013 services in a 2010 farm. It was a really interesting session, although it raises more questions than it answered. This is definitely a subject that needs to be tested thoroughly. Tomorrow is day 2 and I’m ready!  

Read More

SharePoint distributed cache issues

Posted by andre | Posted in Distributed Cache, Installation & Configuration, SharePoint 2013 | Posted on 07-06-2013


Cache host info is null”  ”FeedCacheService.GetPublishedFeed: Object reference not set to an instance of an object” “The operation failed because the server could not access the distributed cache. Internal type name: Microsoft.Office.Server.Microfeed.MicrofeedException. Internal error code: 55

Have you installed SharePoint 2013 and have you seen any of the above notifications? Well good news, you are not the only one!

I’ve done numerous SharePoint installations for customers in the past months and every multiple-server configuration came with the same errors and none showed anything at the newsfeed.

After reading all the blogs about it I contacted Microsoft and we came to the following conclusions:

Don’t mix your distributed cache instance with your search services

Search can take up a lot of memory. Especially the memory distributed cache would like to use. If those two get into a fight about who’s going to use available memory cache might lose the fight and won’t be able to store the data. This way a wrongful entry could be made into the database and corruption is what follows.

Don’t fiddle with the AppFabric configuration

AppFabric is a Windows feature, distributed cache is a SharePoint cache layer based on top of AppFabric. Changing the AppFabric configuration, starting / stopping the service or changing the hosts in the cluster is not something a SharePoint admin should do. Adding or removing cache hosts should only be done with Remove- SPDistributedCacheServiceInstance and Add-SPDistributedCacheServiceInstance.
When all hope seems lost, start over!

After you’ve seen all the errors and reset all clusters and hosts, you’ll probably still get the same error. By recommendation from Microsoft: start over! Disconnect your servers from the farm and remove your databases.

How to configure

In a multiple server configuration you always start with setting up your main application server. In a basic set-up this server will host your Search, User Profile, etc. This is where the key to a successful configuration lies. After installing the SharePoint software and applying the March PU (KB767999) you want to configure your host without registering as a cachehost. Use the following PowerShell command to do so:

      New-SPConfigurationDatabase -DatabaseName [name] -DatabaseServer [server] -AdministrationContentDatabaseName [name] -Passphrase [passphrase] -


    -FarmCredentials [credentials]

The parameter “SkipRegisterAsDistributedCacheHost” prevents the server from becoming a distributed cache host.

After you complete your application server you connect your web front-end servers. By running the wizard your server automatically becomes a distributed cache host. In case you want to use dedicated cache hosts you can use the “SkipRegisterAsDistributedCacheHost” parameter when using the “Connect-SPConfigurationDatabase” command.

Configuring the User Profile Service

Now that your farm is ready you create a web application as your MySite host and you add a new User Profile Service service application.

Either you use an existing application pool or you create a new one, the account which is running your application pool needs to have “full control” connection permissions at the User Profile Service application.









Follow this blog to get this step done:

If all things are set correctly your newsfeed will now show the proper items!

At the servers configured as a cache host you can check the AppFabric configurion by running the following 2 commands in PowerShell:

    Use-CacheCluster followed by Get-CacheHost

Getting the status of your SharePoint Distributed Cache hosts is done by running

    Get-SPServiceInstance | where{$_.typename -like “*distributed*”}

The status on your DistributedCacheCluster is checked with:

    $SPFarm = Get-SPFarm
    $cacheClusterName = “SPDistributedCacheCluster_” + $SPFarm.Id.ToString()
    $cacheClusterManager = [Microsoft.SharePoint.DistributedCaching.Utilities.SPDistributedCacheClusterInfoManager]::Local
    $cacheClusterInfo = $cacheClusterManager.GetSPDistributedCacheClusterInfo($cacheClusterName);
    $cacheClusterInfo | fl *


Adding a cache host

If you want to add a SharePoint server as a cache host you run nothing else then:


Comments are closed.