Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# Use HttpClient to GET JSON from API endpoint
- C# JWT Token Get Expiry Timestamp
- C# Authorization in .NET Core API's using Attributes, TypeFilterAttribute and IAuthorizationFilter
- Serialization and deserialization of 'System.IntPtr' instances are not supported. Path: $.TargetSite.MethodHandle.Value
- C# Azure Table Storage QueryAsync, Paging and Filtering
- .NET Core MVC Web API - control DateTime format in JSON output using JsonSerializerOptions
Archive
Meta
Category Archives: Sitecore 8
Sitecore: Insert Link tree does not expand
In my development Sitecore, I had this strange situation that when I tried to insert a link, the tree would not fold out for certain items: I can see that I get the following error back from the /-/item/v1/sitecore/shell?sc_itemid= call: … Continue reading
Posted in Sitecore 10, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged DbBrowser, LinkField, Sitecore
Leave a comment
Sitecore: Unable to load the service index for source https://sitecore.myget.org/F/sc-packages/api/v3/index.json.Sitecore – The remote name could not be resolved: ‘sitecore.myget.org’
Here is what you do if you receive messages like this: Errors in packages.config projectsUnable to find version ‘9.0.171219’ of package ‘Sitecore.Kernel.NoReferences’.https://sitecore.myget.org/F/sc-packages/api/v3/index.json: Unable to load the service index for source https://sitecore.myget.org/F/sc-packages/api/v3/index.json.An error occurred while sending the request.The remote name could … Continue reading
Posted in Sitecore 10, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged MyGet, NuGet, Packages, Sitecore
Leave a comment
Sitecore Scheduled Tasks Run only when you want them to
Sitecore Scheduled Tasks is one of the fundamental features of Sitecore that allows you to run background tasks based on a schedule. The most common scheduled task runner is the one that looks for schedules in the /system/tasks/schedules folder. But … Continue reading
Sitecore TargetInvocationException: Exception has been thrown by the target of an invocation
You are probably upgrading some packages in your Sitecore instance, but instead of success and glory, you are greeted with the following error message: The real reason for the error is hidden because Counters are enabled. To see the actual … Continue reading
Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The system cannot find the file specified
The following error may occur when upgrading Microsoft ApplicationInsights: [FileNotFoundException: Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The system cannot find the file specified.]Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_BeginRequest(Object sender, EventArgs e) +0System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142System.Web.<>c__DisplayClass285_0.b__0() +38System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +11857717System.Web.HttpApplication.ExecuteStep(IExecutionStep … Continue reading
Posted in c#, General .NET, Sitecore 10, Sitecore 7, Sitecore 8, Sitecore 9
Tagged Application Insights, Binding, Dependency, NuGet
Leave a comment
Sitecore SOLR Search in multiselect lists fails unless you add the field to the defaultSolrIndexConfiguration config
So I have this multiselect field in Sitecore: The field is a treelist field, but this article works for all multiselect fields, treelist, checklist, multilist, etc. So how do you return the field as a list of Sitecore ID’s from … Continue reading
Posted in .net, c#, Sitecore 10, Sitecore 7, Sitecore 8, Sitecore 9
Tagged index, search, Sitecore and .net, SOLR
Leave a comment
Sitecore Create Fully Qualified Url
A classic issue in Sitecore: Some code running in one Site Context is creating a link to a page in another context, and the link turns out to be complete garbage. For example, this code is running in the modules_shell … Continue reading
Posted in .net, c#, General .NET, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9, Sitecore and .net
Tagged LinkManager, links, SiteContext, Sitecore and .net, SiteResolving, URL
Leave a comment
Sitecore System.Data.DataException: Error executing SQL command: INSERT INTO [Properties] ( [Key], [Value] ) VALUES ( @name, @value ) —> System.Data.SqlClient.SqlException: String or binary data would be truncated
I just deployed, and now I cannot log in. Is it an error in the code? Or is it an error in data. Don’t worry, your login ticket just got messed up in the Properties table of the CORE database. … Continue reading
Posted in General .NET, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged login, Properties, SC_TICKET, Sitecore and .net, System.Data.DataException
Leave a comment
Sitecore create custom Content Editor Warnings using Conditions and Rules
The Content Editor Warnings are these yellow boxes that hover over your content in the Content Editor in Sitecore: In the old days we would make them by hooking into the getContentEditorWarnings pipeline. Nowadays we use the Sitecore Rules engine. … Continue reading
Posted in c#, General .NET, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged Conditions, ContentEditorWarnings, RuleContext, rules, Sitecore and .net, Warning, Yellow Box
Leave a comment
Sitecore poor Index Update performance linked to missing Index in the Links database
Suddenly my index updates took forever to finish. I mean, one index update would take 2 minutes. And I have a lot of index updates. A lot. UPDATE: 2022-01-19: Sitecore have suggested the same changes to the links database in … Continue reading
Posted in General .NET, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9, Sitecore and .net
Tagged index, Linkdatabase, links, Sitecore and .net
2 Comments