Category Archives: Sitecore

Sitecore Advanced Configuration in .config files

Sitecore allows you to create configuration sections in /configuration/sitecore/ that consists of hierarchies of configurations including lists, and it will even help you serialize the configuration to object instances. Observe the following real life example of a configuration I created to … Continue reading

Posted in Sitecore 5, General .NET, Sitecore 6, Sitecore, .net, c#, Sitecore 7, Sitecore 8 | Tagged , , , , | Leave a comment

Sitecore SVG files

In Sitecore 8.1, there is a tiny but annoying glitch in the matrix, where SVG files are not allowed in the Media Library. But do not worry, the fix is easy. Go to your /App_Config/Sitecore.config, find the /sitecore/mediaLibrary/mediaTypes/mediaType section, and add … Continue reading

Posted in Sitecore, Sitecore 8 | Tagged , | 1 Comment

Sitecore sublayout caching vary by cookie

In Sitecore you can control the caching of your sublayouts in many different ways. Checking the “Cacheable” box allows you you vary the cache by data (data source), device, login (anonymous users have a different cached version from named users), … Continue reading

Posted in c#, General .NET, Sitecore, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8 | Tagged , , , | 1 Comment

Sitecore Virtual Users – authenticate users from external systems

One of the very old Sitecore features popped up yesterday. My team and I are working on moving our 550.000+ users from the .NET Membership Provider to an external system, possibly .NET Identity. .NET Identity will authorize the users, but we … Continue reading

Posted in c#, Sitecore, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8 | Tagged , , , | 4 Comments

Sitecore 8 and Tracker.Current.Session.Identify – Overriding expired contact session lock for contact id

The new Sitecore 8 Experience Profile is a vital part, yes almost a cornerstone of the new xDB concept. In xDB, you store information about the current user, anonymous or named, as a Contact in the Experience Profile (stored in … Continue reading

Posted in c#, Sitecore, Sitecore 8 | Tagged , , , , | 4 Comments

Sitecore 8 and Engagement Plans

With the introduction of the xDB in Sitecore 7.5, Sitecore also changed the analytics API. The VisitorManager have been replaced by the Tracker. The Tracker is one of the base API’s for Sitecore the new Sitecore Experience Platform (the new … Continue reading

Posted in c#, General .NET, Sitecore, Sitecore 8 | Tagged , , , , , | 1 Comment

Improve Sitecore Membership provider performance 2-20 times

Sitecore Membership performance can be increased dramatically by changing stored procedures and create new indexes. Try this before you write your own membership provider. Continue reading

Posted in Sitecore, Sitecore 6, Sitecore 7 | Tagged , , , | 6 Comments

Unable to serialize the session state. In ‘StateServer’ and ‘SQLServer’ mode

When switching the sessionState mode of your web project from InProc to SQLServer you might encounter this error: Exception: System.Web.HttpException Message: Unable to serialize the session state. In ‘StateServer’ and ‘SQLServer’ mode, ASP.NET will serialize the session state objects, and … Continue reading

Posted in c#, General .NET, Sitecore | Tagged , , , , , , | 1 Comment

Sitecore Code Generator and O/R mapper

You probably have never used a code generator for the same reason I never used a code generator: It was not developed by yourself It’s not generating the code you need You cannot extend it with the stuff you need … Continue reading

Posted in c#, Sitecore, Sitecore 7 | Tagged , , , | 19 Comments

Sitecore.Data.ID The call is ambiguous

In Sitecore you cannot compare an ID with NULL; it will produce the following error: The call is ambiguous between the following methods or properties: ‘Sitecore.Data.ID.operator ==(Sitecore.Data.ID, Sitecore.Data.ID)’ and ‘Sitecore.Data.ID.operator ==(Sitecore.Data.ID, Sitecore.Data.ShortID)’ I.e. the following code is invalid: Instead, you … Continue reading

Posted in c#, Sitecore, Sitecore 7 | Tagged , | 2 Comments