
Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
Archive
Meta
Category Archives: c#
Sitecore allow email adress as user name
If you try to create a new user in Sitecore with an email address as account name you will be met with a validation error: “user name is not valid in the selected domain.” But do not worry, it’s not … Continue reading
Posted in c#, Sitecore 6, Sitecore 7
Tagged Account, AccountNameValidation, Email, Sitecore, User
2 Comments
Sitecore 404 without 302
It’s a well known issue that when Sitecore displays a 404 page, it’s done by doing a 302 redirect to the 404 page, hence the 302 status code is thrown before the 404. The behavior is partially because of the … Continue reading
Posted in c#, General .NET, Sitecore 6
Tagged 302, 404, httpRequestBegin, Pipeline, Sitecore, TrySkipIisCustomErrors
4 Comments
Create components for Sitecore Page Editor
This quick tutorial will guide you trough your first Sitecore Page Editable Component. The Sitecore Page Editor is build around the concept of components. A component is a reusable piece of data that is parred with a sublayout and placed … Continue reading
Sitecore Save Dialog appears for unchanged content
Have you ever experienced that Sitecore keeps popping the “Do you want to save the changes to the item?” dialog box, even when you have made no changes to the item? And the box keeps appearing, even when you have … Continue reading
Posted in c#, Sitecore 6
Tagged Carriage Return, Memo, MultiLine Field, New Line, Save, Sitecore
4 Comments
Sitecore Users and C#
The Sitecore security framework is based on the .NET security. Managing Authentication, Authorization, User Accounts and Roles can be done using the standard System.Web.Security namespace. But Sitecore also provides its own Security framework that you can use for easy manipulation … Continue reading
Posted in c#, Sitecore 6
Tagged Authentication, Custom Property, Roles, security, security framework, Sitecore, Sitecore.Security, System.Web.Security
4 Comments
Sitecore Links with LinkManager and MediaManager
This article describes how Sitecore handles internal and external links, how you can resolve the correct URL to an item, and what you should know about links when building multisite and multilanguage websites. To render a corrent URL you use … Continue reading
Posted in .net, c#, Sitecore 6
Tagged LinkManager, LinkProvider, MediaManager, Sitecore, SiteResolving
1 Comment
Validate CheckBoxList using a CustomValidator
In this article I explain how you can validate that at least one checkbox is checked in an asp:CheckBoxList using an asp:CustomValidator, and how to make it work server side and client side. None of the built in .net validators … Continue reading
Posted in .net, c#, General .NET
Tagged .NET, CheckBoxList, ClientValidationFunction, ControlToValidate, CustomValidator, isvalid, Javascript, server side validation, validation
3 Comments
Google Maps for Sitecore
Finally the Advanced Sitecore Google Maps (WCAG Edition) for Sitecore has been upgraded to use the V3 API of Google Maps. Advanced Sitecore Google Maps is a commercial module for Sitecore that allows you to add Google Maps to your Sitecore … Continue reading
Unable to read data from the transport connection: The connection was closed
This is my second network error in 2 weeks. When trying to retrieve an image using a WebRequest I get the following error: Exception: System.IO.IOException Message: Unable to read data from the transport connection: The connection was closed. Source: System … Continue reading
Posted in c#
Tagged .NET 4.0, HttpVersion, HttpWebRequest, KeepAlive, ProtocolVersion, ServicePoint, System.IO.IOException
Leave a comment
An existing connection was forcibly closed by the remote host
This error occured randomly in my project when I tried to read images from a HttpWebRequest. The exception is: Exception: System.IO.IOException Message: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Nested … Continue reading