Author Archives: briancaos

About briancaos

Developer at Pentia A/S since 2003. Have developed Web Applications using Sitecore Since Sitecore 4.1.

Using emojis in Sitecore

Because people younger than me stopped communicating with words and instead adopted a modern version of hieroglyphs, emojis have become a part of every modern OS and Browser, and have even been adopted by the Unicode Consortium as a standard … Continue reading

Posted in Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9 | Tagged , , | Leave a comment

SQL Cannot resolve the collation conflict between “xxx” and “xxx” in the equal to operation – Use COLLATE DATABASE_DEFAULT

When joining 2 tables from different databases, the following error might occur: Cannot resolve the collation conflict between “SQL_Latin1_General_CP1_CI_AS” and “Danish_Norwegian_CI_AS” in the equal to operation. This can happen when the 2 databases is created with different collations (language settings). … Continue reading

Posted in Uncategorized | Leave a comment

Sitecore Security: Roles in Roles – What it is and how it works

The Sitecore Roles-In-Roles is an extension to the basic authorization that have been around ever since Sitecore 5. WHAT IS ROLES-IN-ROLES? Roles-In-Roles allows you to have nested roles, so when you add a role to a user, the user is … Continue reading

Posted in Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9 | Tagged , , , , | 1 Comment

Azure Application Insights – Multiple services from same server

This trick enables you to have multiple services from the same server log to the same Application Insights instance, and at the same time distinguish between each service. In the example above, I have 2 services from the same server. … Continue reading

Posted in c#, General .NET, Microsoft Azure | Tagged , | Leave a comment

c# Async fire and forget

Often in application development you want a process to call another thread and continue the process flow, without waiting for a response from the called thread. This pattern is called the “fire and forget” pattern. I myself are oblivious to … Continue reading

Posted in .net, c#, General .NET | Tagged , , | Leave a comment

Sitecore check access and roles programatically

The Sitecore security model have changed over time, but the general API to check security access and roles have been stable for many many years. CHECK IF USER HAS ACCESS TO AN ITEM: To check if a user have access … Continue reading

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

Sitecore 9 Caching – Sitecore.Caching.CacheManager.GetAllCaches() changed from Sitecore 8

With the increased use of dependency injection, in Sitecore, some classes do no longer return concrete classes, but interfaces instead. You therefore need to change your code, if you use the Sitecore.Caching.CacheManager. The Sitecore.Caching.Cache class is retired and have been replaced … Continue reading

Posted in Sitecore 8, Sitecore 9 | Tagged , , | 2 Comments

Solr delete document using UI and querystring

How do you delete a document from Solr? You can use query string parameters to do the delete: https://%5Bserver%5D:8983/solr/%5Bcore%5D/update?commit=true&stream.body=<delete><query>%5Bquery%5D</query></delete&gt; server: The name of your Solr server core: The name of the Solr core (the Solr index) to delete from query: … Continue reading

Posted in General .NET | Tagged | Leave a comment

Sitecore 9 Dependency Injection – Extend the Sitecore Logging

With the extended use of Dependency Injection (DI) in Sitecore 9, you have yet another tool to extend the Sitecore functionality. With DI you can basically replace or extend standard Sitecore functionality with your own code. Dependency Injection is not a … Continue reading

Posted in .net, c#, General .NET, Sitecore 9 | Tagged , , , | Leave a comment

Sitecore The “placeholder” placeholder was not rendered in the “page” item

Do you get this error in Sitecore 9? 9952 2018:10:23 12:56:42 WARN The “xxxxx” placeholder was not rendered in the “xxxxx” item ({00000000-0000-0000-0000-000000000000}) rendering context. Possible causes:​ 1) Rendering markup was taken from HTML cache, thus no rendering process took … Continue reading

Posted in Sitecore 9 | Tagged , , | Leave a comment