Quantcast
Channel: Brian Pedersen's Sitecore and .NET Blog
Browsing all 285 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Sitecore PostSessionEndPipeline failed – MongoDB.Driver.MongoQueryException

In my (huge) Sitecore solution we experienced the following error: ERROR PostSessionEndPipeline failed. Exception: MongoDB.Driver.MongoQueryException Message: QueryFailure flag was Runner error:...

View Article


Image may be NSFW.
Clik here to view.

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...

View Article


Image may be NSFW.
Clik here to view.

Sitecore Measure Pipeline performance and profile processors

In Sitecore, Pipelines are by far my favorite dependency injection pattern, and I have used them since Sitecore 5. One of the secret features of pipelines are the built in profiling. Oh, yes, by...

View Article

Image may be NSFW.
Clik here to view.

Sitecore Event Queue – How to clean it – and why

Yesterday the dreaded Sitecore Event Queue almost killed me again – well it certainly almost killed my CM server. The server went from being busy but stable to being unresponsive. CPU and memory load...

View Article

Image may be NSFW.
Clik here to view.

Sitecore Publishing – Programmatically determine if item should be published

Sitecore uses it’s publish settings to determine if an item should be published. But you can only control a publish from versions and date times. Sitecore Publishing Settings So what if you have other...

View Article


Image may be NSFW.
Clik here to view.

Sitecore Scheduled Tasks – Run on certain server instance

If you would like certain Sitecore Scheduled Tasks run on a certain server instance (your CM server for example) the approach is pretty simple. First, create a new folder under /sitecore/system/Tasks....

View Article

Image may be NSFW.
Clik here to view.

Sitecore General error when submitting contact – Another contact with the...

In Sitecore when creating your own contacts you can get the following exception: 10604 10:16:27 ERROR General error when submitting contact. Exception: System.InvalidOperationException Message: Another...

View Article

Image may be NSFW.
Clik here to view.

Sitecore custom cache that is cleared on publish

In this article I will demonstrate how to create a custom Sitecore cache and how to ensure that it is cleared when you publish. First I will create the simplest custom cache available: namespace...

View Article


Image may be NSFW.
Clik here to view.

Send email via SparkPost and C#

SparkPost is yet another email service. It is easy to work with, seems robust, and it will be fairly easy on your client’s budget, as you get 100.000 emails per month for free (as per jan 2017). A...

View Article


Image may be NSFW.
Clik here to view.

Sitecore MongoDB – What do we know about a contact?

The Sitecore Analytics can be somewhat of a black box. All we know is that Sitecore stores everything about a site visitor in a Contact object and stuffs it into MongoDB when the visitor session...

View Article

Image may be NSFW.
Clik here to view.

Get Sitecore System Info

Would you like to know the System Info of your current Sitecore instance: Sitecore System Info It’s fairly easy. I created an SysInfo.aspx page and dumped in into the /sitecore modules/shell folder....

View Article

Image may be NSFW.
Clik here to view.

Sitecore Failed to update profile pattern

My Sitecore CD servers logged the following errors 2-3 times per minute: 7760 11:10:46 ERROR Failed to update profile pattern Exception: System.ArgumentNullException Message: Value cannot be null....

View Article

Image may be NSFW.
Clik here to view.

Sitecore how to make the experience editor a great experience for your editors

In Sitecore it is very easy to toss in a few renderings on a page, set the renderings flag to “editable”, and voila, the page is editable using the Sitecore Experience Editor. But that kind of laziness...

View Article


Image may be NSFW.
Clik here to view.

Sitecore Hiding items: Clean up the cluttered content tree

As a followup to a question from Derek Dysart on my previous post, How to make the experience editor a great experience for your editors I will explain how you can clean up the Sitecore content tree by...

View Article

Image may be NSFW.
Clik here to view.

Sitecore how to configure SSL (HTTPS) in your Sitecore config files

SSL and HTTPS have been the hot topic since Google began to use HTTPS as a signal in their search rankings. Fortunately, Sitecore really does not care if it runs in HTTP or HTTPS, so most of the...

View Article


Image may be NSFW.
Clik here to view.

Sitecore and Feature Flags using LaunchDarkly

Feature flags are a software development best practice of gating functionality. Functionality can be deployed “off”, then turned on via the feature flag, separate from deployment. With feature flags,...

View Article

Image may be NSFW.
Clik here to view.

Sitecore Caching – Clear caches individually

The Sitecore caching engine is a simple yet powerful tool where Sitecore not only stores it’s own data for fast retrieval, but allows you to store your own data of any kind. Sitecore have a built in...

View Article


Image may be NSFW.
Clik here to view.

Sitecore ContentSearch Get Latest Version

The Sitecore ContentSearch API allows you to index content in either .NET Lucene or SOLR, dramatically speeding up retrieval of content, especially when querying items that are scattered across your...

View Article

Image may be NSFW.
Clik here to view.

Sitecore user:created event not fired on Membership.CreateUser

Sitecore have since 7.5’ish fired events each time you manipulate the users in the .NET Membership database: <event name="user:created"></event> <event...

View Article

Image may be NSFW.
Clik here to view.

Sitecore ContentSearch – Get items from SOLR or Lucene – A base class...

Reading items from Sitecore is pretty straight forward: Sitecore.Data.Items.Item item = Sitecore.Context.Database.GetItem("/sitecore/context/.../..."); And it is fast, unless you need to retrieve items...

View Article
Browsing all 285 articles
Browse latest View live