Hans Rasmussen

info@hansrasmussen.com, +46 (0)760480046

DataContractSerializer – Alphabetical mystique

http://msdn.microsoft.com/en-us/library/system.runtime.serialization.datacontractserializer.aspx
I noticed that DataContractSerializer is using serialization in alphabetical order. If you do not follow the below rules you will end up missing data after deserialization of your XML.
    [Serializable, DataContract(Namespace = "your-namespace")]
    public class YourObject : DataModelDeserializable<YourObject>
    {
        [DataMember]
        public string PostalCode { get; set; }
        [DataMember]
        public string City { get; set; }
        [...]

Disable Loopback when you experience HTTP 401.1 when accessing web site from localhost

I experienced something that made my whole day full of troubleshooting.
On a Windows 2008 Server Microsoft Dynamics CRM 4.0 was installed. CRM web application was using port 80 and had no host headers defined.
Great, I wanted another web application to be located on the same server and therefore we created a DNS entry to point [...]

Enable AJAX Support in SharePoint,WSS, MOSS 2007

Microsoft suggests the following changes to web.config for your SharePoint installation if you want to enable AJAX functionality. http://msdn.microsoft.com/en-us/library/bb861898.aspx
However it is easier to use this Feature and activate it through SharePoint central administration. Benefits are that it both creates the changes when you activate and undo the changes when you deactivate. And from a deployment [...]

Adding references to Silverlight toolkit in Visual Studio 2008 and Blend 3

If you want to learn and develop some Silverlight components (which I do recommend you start learning how to);
Download Microsoft&reg; Silverlight&trade; 3 Tools for Visual Studio 2008 http://www.microsoft.com/downloads/details.aspx?familyid=9442b0f2-7465-417a-88f3-5e7b5409e9dd&amp;displaylang=en
Download Silverlight Control Toolkit from CodePlex http://www.codeplex.com/Silverlight
Add references to Silverlight Control Toolkit in Visual Studio 2008 and Blend 3, so you can start using it http://blog.enginefour.com/blog/post/Adding-Silverlight-Toolkit-Controls-to-the-Visual-Studio-and-Blend-Toolbox.aspx

Installing LAMP (easy way)

I previously wrote about how to install WordPress on Ubuntu with some information on how to setup Apache, mySQL, PHP.
A faster way (if you do not care about selecting and configuring manually)
sudo tasksel install lamp-server

E4tRlaMr987VZ112