Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- Create C# Class from SQL
- C# HttpClient POST or PUT Json with content type application/json
- Run tasks in parallel using .NET Core, C# and async coding
- C# get results from Task.WhenAll
- C# Get expiry timestamp from JWT token
- Using C# HttpClient from Sync and Async code
- ASP.Net Core API - "'s' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0."
Archive
Meta
Category Archives: Sitecore 8
Sitecore LinkField TargetItem is NULL – what’s wrong?
An ancient topic, that pops up once or twice every year. The TargetItem of Sitecore.Data.Links.LinkField returns NULL and you are CERTAIN that the item is published. What to do? CASE 1: THERE IS SECURITY SET ON THE TARGETITEM Items where … Continue reading
Posted in .net, c#, General .NET, Sitecore, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged LinkField, LinkManager, SecurityDisabler, Sitecore, TargetItem
Leave a comment
Sitecore Publish item when moved or dragged using uiMoveItems and uiDragItemTo pipelines
Sometimes you have items that needs to be published immediately if moved to a new location in the content tree. Sitecore supports this – of course – via the uiMoveItems and uiDragItemTo pipelines. This technique really applies to whatever you … Continue reading
Posted in c#, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged Publish, Sitecore, uiDragItemTo, uiMoveItems
Leave a comment
Sitecore field level Security – give write access to members of a certain group
The Sitecore security model is pretty straight forward, but as everything security, it can become complicated. This goes for field level security. For a certain field, I wish to grant read access to everyone, but write access only to members … Continue reading
Posted in Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged security, Sitecore, Sitecore.Security
Leave a comment
Method not found: ‘Void Sitecore.ContentSearch.Diagnostics.AbstractLog.SingleWarn(System.String, System.Exception)’.
I struggled with this error in my development environment: Method not found: ‘Void Sitecore.ContentSearch.Diagnostics.AbstractLog.SingleWarn(System.String, System.Exception)’. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, … Continue reading
Sitecore Memory Issues – Every memory optimization trick in the book
My recent post, Sitecore high memory usage – not always a problem, claims that high memory usage is not the same as having a memory problem in Sitecore. But the reason you are reading this blog is because the memory … Continue reading
Posted in Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged Caching, EventQueue, interning, Memory Optimization, MemoryMonitorHook, Sitecore
2 Comments
Sitecore high memory usage – not always a problem
Sitecore is known to be a real memory hog. Especially the CM server is known to love memory. One of the memory issues that Sitecore faces is the high usage of the Large Object Heap. WHY IS THIS A PROBLEM? … Continue reading
Posted in Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged Cache, garbage collection, interning, LOH, MemoryMonitorHook, Sitecore
2 Comments
Sync Sitecore content to external database
The legal department of the client requested that we sync parts of the Sitecore tree to an external, system-versioned temporal table, so that we have a full audit trail of changes to these items including before-and-after values. Fear not, this … Continue reading
Posted in .net, c#, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged item:created, item:deleted, item:moved, item:renamed, item:saved, Sitecore, Temporal Tables
3 Comments
Sitecore Create/Read/Update/Delete/Copy/Move/Rename item – the beginners guide
New Sitecorians often ask the most trivial questions, and I am happy to answer them. This question popped up lately: How do you perform basic CRUD operations on your Sitecore items? Well, it’s easy: READ ITEM (GET ITEM): CREATE ITEM: … Continue reading
Posted in .net, c#, General .NET, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged CRUD, Sitecore
1 Comment
Sitecore use item:deleting event to avoid deletion of items
The Sitecore extendable model allows you to build business rules into your Sitecore solution. This is an example where I disallow deletion of certain items when a certain business rule is true. This pattern could be implemented using a field … Continue reading
Posted in .net, c#, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged Events, item:deleting, Sitecore
1 Comment
Sitecore and Application Insights – How to remove 90% of all log lines without sacrificing traceability
In this article I will explain how you can remove up to 90% of all log lines from the Application Insights log, but still keep every log line in the file log. All of this without loosing any important information. … Continue reading
Posted in Microsoft Azure, Sitecore 8, Sitecore 9
Tagged Application Insights, Azure, Log4Net, Logging, Microsoft Azure, Sitecore
3 Comments