I'm running Sitecore 8.2 Update 4, and I'm trying to turn on shared SQL sessions. I've followed the instructions found here, and made these changes.

In my web.config file:

<sessionState mode="Custom" customProvider="mssql" cookieless="false" timeout="1">
    <add name="mssql"
         type=" Sitecore.SessionProvider.Sql.SqlSessionStateProvider, Sitecore.SessionProvider.Sql"

In my ConnectionStrings.config file,

<add name="session" connectionString="user id=my_Service_Account;password=my_Password;Data Source=my_IP_Address;Database=SitecoreSessions"/>

In my Sitecore.Analytics.Tracking.config file, I've got this change:

        <sharedSessionState defaultProvider="mssql">
                <add name="InProc">
              <add name="mssql" type="Sitecore.SessionProvider.Sql.SqlSessionStateProvider,Sitecore.SessionProvider.Sql" connectionStringName="session" pollingInterval="2" compression="true" sessionType="shared"/>

Everything seems to work fine on my development sandbox. However, once I deploy my changes to our test server, which has multiple server roles (i.e. CM/CD/Reporting/Processing and Aggregation), I get this error on the CD Server's log:

676 15:28:10 WARN Failed to deserialize Session object. Exception: Sitecore.Analytics.Exceptions.TypeNotAllowedForBindingException Message: Binding for type Sitecore.Analytics.Tracking.StandardSession from assembly Sitecore.Analytics, Version=, Culture=neutral, PublicKeyToken=null is not allowed. Source: Sitecore.Analytics at Sitecore.Analytics.Sessions.WhitelistSerializationBinder.BindToType(String assemblyName, String typeName) at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Bind(String assemblyString, String typeString) at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name) at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at Sitecore.Analytics.Sessions.PushSession.ProcessRequest(HttpContext context)

I've noticed that my Sitecore.Analytics.dll version is 10.0.3, not, as is being requested in the .NET stack trace. I'm not sure why Sitecore is looking for version 8.1 instead of version 8.2 of that DLL. Where can I go to start figuring out how to fix this issue?

  • Is your project is upgraded to 8.2 from 8.1? It may be referring to older dll somewhere from the project. Oct 31, 2017 at 5:49
  • can you compare dlls from your solution with a clean sitecore solution wich has same release like your project Oct 31, 2017 at 8:57
  • @MohitDharmadhikari - Yes, this was upgraded from Sitecore 8.1, but I'm not seeing any references to the older DLLs. Oct 31, 2017 at 16:43
  • @SitecoreClimber - I was able to compare, and found that my CD Servers had 2 Sitecore 8.1 files that are not part of the 8.2 release: Sitecore.Cloud.ContentSearch.dll and Sitecore.Cloud.Xdb.dll. I removed those and that error has gone away now. Thanks for your help! Oct 31, 2017 at 16:44
  • Glad I could help you. I will transform my comment into an answer, to be more visible if others has same issue Oct 31, 2017 at 17:26

1 Answer 1


I remarked on a few updated old assemblies that are not overrideable by the files from update package.

For me looks like you still have some assemblies from old solution.

Please compare assemblies from your solution with a clean Sitecore solution which is using the same release version as your project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.