SharePoint 2013 installation headacks

This blog describes some problems that I faced when installing a SharePoint 2013 server


Errors encountered

The following error showed up

When creating a site collection with a custom solution

Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedViewStateCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts present in the farm.


The solution for this problem is to create a new Server AppFabric Cache host and can be found on  msdn .

First I created a new SQL database with the name CacheClusterConfigurationDB

After that I used the following powershell scripts to create a new Server Appfabric on the server.

New-CacheCluster -Provider System.Data.SqlClient -ConnectionString  "Data Source=ServerName\SQL2012;Initial Catalog=CacheClusterConfigurationDB;Integrated Security=True" -Size Small

Register-CacheHost -Provider System.Data.SqlClient -ConnectionString  "Data Source=ServerName\SQL2012;Initial Catalog=CacheClusterConfigurationDB;Integrated Security=True"  -Account "ServerName\cachehost" -CachePort 22233 -ClusterPort 22234  -ArbitrationPort 22235 -ReplicationPort 22236 -HostName  ServerName

Add-CacheHost -Provider System.Data.SqlClient -ConnectionString  "Data Source=ServerName\SQL2012;Initial Catalog=CacheClusterConfigurationDB;Integrated Security=True" -Account "ServerName\cachehost"

Add-CacheAdmin -Provider System.Data.SqlClient -ConnectionString  "Data Source=ServerName\SQL2012;Initial Catalog=CacheClusterConfigurationDB;Integrated Security=True" -Account "ServerName\cachehost"

Add-CacheAdmin -Provider System.Data.SqlClient -ConnectionString  "Data Source=ServerName\SQL2012;Initial Catalog=CacheClusterConfigurationDB;Integrated Security=True"

Use-CacheCluster

Set-CacheHostConfig -Hostname ServerName -cacheport 22233

Also I changed the user under the AppFabric Caching Service to an local account that I used for the scripts



Comments

Gerard said…
Thank you very much!
Anonymous said…
Hi Thanks for the post. I exactly followed your steps but unfortunately my issue did not solve. I am also unable to start Distributed cache service from CA. Even i can not see the defaults websites (SharePoint-80 and SP Central Administration) in CA. I even can not do anything (add managed account etc etc) after installing SP Foundation 2013 on stand alone installation. Please help.
Rockie said…
What is "ServerName\cachehost" in Your case?
Software Development Choose the Best Software Development Company in Delhi is also made best designing and CMS web application.
http://www.razorse.com

Popular posts from this blog

System.Net.Http dll version problems

SharePoint Survey Back Button

Azure table storage error: One of the request inputs is not valid