webinar sitecore continuous integration

Basically this post is a recap of the “Sitecore and Continuous Integration” webinar, with some extra details about certain topics. The goal of continuous integration is to push every little piece of new software to next environments, the last step being production. Along this way, you want your software to be merged, compiled and tested. This way of developing has been around for a while with standard ASP .NET software. The problem with Sitecore is that it also heavily relies on the More Info »

strategy_pattern

In this example I´m going to explane the strategy pattern. With this example you can do a calculation with two numbers (-/+) and expand the number of operators (/, *, etc.). First create a interface which defines the interface of the operator classes. For this example an operator can only calculate two values. //The interface for the strategies public interface ICalculateInterface { //define method int Calculate(int value1, int value2); } Next create the operators (strategies) Minus (which subtract value 2 from value More Info »

The test-team came to me with a problem involving connection errors while running webtests trough the company proxy. The webrequest needed to go to the webproxy including authentication. Visual Studion 2008 doesn’t support proxy authentication out of the box, but you can create a WebTestPlugin that does the authentication for every request. The following class inherits from WebTestPlugin and overrides the PreWebTest method. In the PreWebTest method it will authenticate the request with your credentials. public class LoadTestProxyAuthentication : WebTestPlugin {         More Info »

When deploying a Silverlight application we ran into problems a WCF web-service, to find out what the problem was I wanted to invoke the method. Microsoft shipped an application for invoking methods from your Windows PC (WCFtestclient.exe). The following steps explain how to use WCFtestclient.exe. First startup Visual Studio 2008 Command Prompt. In the command prompt type wcftestclient, the application will startup. Now we need to add the Service. Click File and Add Service.   Add the URL to your service in the pop-up More Info »

After installing and playing with the Asp.Net Charting control I decided to use it for a customer. When integrating the control to the project I got the following error "Error executing child request for ChartImg.axd" This error occurred because I did not update my web.config file. You have to add the following appSettingkey, httpHandler and handler. [code:xml] <appSettings>     <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:TempImageFilesDit;" /> </appSettings> <httpHandlers>     <add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" /> </httpHandlers> <handlers>     <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, More Info »

This is a basic example of an console-application with parameters used for a scheduled tasks. The application will be scheduled to run every day with the -n parameter. But the application can also run on a specific date by using the -d parameter. class Program {  //Parameters  private static DateTime theDate;  private static RunMode mode = RunMode.NotSpecified;  static void Main(string[] args)  {   if (CollectParameters(args))   {    Console.WriteLine("Beginning appliation in mode "{0}" with date {1}.", mode, theDate);    Logger.LogEvent("Starting StatisticConsoleApp", args, (int)Logger.LogType.Message);   }  }  private More Info »

Running WCF on IIS 5 (Windows XP)

After running WCF on my Vista laptop (IIS7) I needed to deploy the application on some Windows XP computers. Again some strange errors occurred: [code:html] Error Description: "This collection already contains an address with scheme http.  There can be at most one address per scheme in this collection. Parameter name: item" [/code] The problem is that WCF cannot handle more than one identity (host headers) per website. At first I configured IIS to have one HostHeader. That solution was just to dirty. So More Info »

Microsoft Tag: Snap my vCard

When surfing the internet I start reading about Microsoft Tag Beta (of course). With Microsoft Tag you can create links with a image-pattern. The image-pattern can be decoded to a link with the Microsoft Tag program on your Windows Mobile (with camera). You can create graphical image-patterns with the following actions: Link to an URL Free text vCard Dialer It looks very promising. Not every tag on a screen gets recognized at once, but the printed tags work very well. I've placed More Info »