Blog entries posted during 2009

How to get started developing with EPiServer CMS

by: Fredrik Haglund ( Inexor )

I got a question in the mail today how to get started with EPiServer CMS as a developer. Here are my tips: Register at with your work email address. Start by downloading and installing "EPiServer CMS 5 R2 SP2" plus SDK on a... [ Read full article ]

23 December 2009  0 Comments

Debugging “Exception has been thrown by the target of an invocation”

by: Fredrik Haglund ( Inexor )

I got a question how to find what was wrong when you only got an error “Exception has been thrown by the target of an invocation. [The server committed a protocol violation The server response was: …]” from a junior developer and I want to share m... [ Read full article ]

22 December 2009  0 Comments

EPiServer with developers on both x32 and x64

by: Fredrik Haglund ( Inexor )

Today’s tip is for all of you who want to share the same web.config among all developers in a project so you can check-in and handle changes in your Source Code Control Repository. EPiServer installation directory and web.config You might have... [ Read full article ]

19 December 2009  0 Comments

I do not like the trend for EPiServer web.config!

by: Fredrik Haglund ( Inexor )

Everyone is talking about CoC (Convention over Configuration) and DRY (Don’t Repeat Yourself) today. The idea is to reduce the amount of repetitive, needless configuration and just keep what’s important. Here is a graph with the number of lines in... [ Read full article ]

21 October 2009  0 Comments

EPiServer CMS: How to configure Remote Events with many servers and Firewalls between them

by: Fredrik Haglund ( Inexor )

The Event Management System in EPiServer CMS 5 is used to propagate information that a page has changed to other web servers connected to the same database. This is very important to setup if you have more than one web server or an enterprise site... [ Read full article ]

22 September 2009  0 Comments

EPiServer LicenseException: x.x.x.x is not a valid ip-address

by: Fredrik Haglund ( Inexor )

I got a support question on this Exception today. First thought is that the ip-address was misstyped or the wrong license.config file was used but ipconfig /all and the IPRestiriction tag in license.config matched! How does EPiServer validate the... [ Read full article ]

11 September 2009  0 Comments

Raise your quality with easy http-protocol analysis

by: Fredrik Haglund ( Inexor )

Both Fiddler (shown below) and Firebug can monitor Network traffic from your browser to web servers. I use it as a debugging tool all the time and could not live without it. Discover broken links to images, java scripts, etc in your pages Just... [ Read full article ]

15 June 2009  0 Comments

Move built-in property to another tab when editing

by: Fredrik Haglund ( Inexor )

One of our customers required that we limited access to the Advanced Information tab in edit mode for normal editors. A reasonable requirement but how do you enable normal editors to adjust the sort order? The answer is to move these built-in... [ Read full article ]

08 June 2009  0 Comments

Are you safe? Dangers of XSS…

by: Fredrik Haglund ( Inexor )

If you allow the visitors of your site to contribute, for example with a simple comment this textbox, you take the risk that a malicious user inject evil code in a comment. This evil code is then executed in the browser by your sites’ ordinary... [ Read full article ]

03 June 2009  0 Comments

Användarförening för EPiServer utvecklare?

by: Fredrik Haglund ( Inexor )

EPiServer växer så det knakar och vi som utvecklar med produkten blir fler och fler. Jag tror tiden är mogen att dra igång ett fristående nätverk för EPiServer utvecklare! Oavsett om man jobbar på ett litet eller stort företag finns det ett behov... [ Read full article ]

06 March 2009  0 Comments

Work with Unpublished PageData from code

by: Fredrik Haglund ( Inexor )

Mari Jørgensen wrote about Breaking change in GetChildren() and I would like to share some of my findings when working with PageData from code when you want to use the built-in flow for publishing. As you might know a Page Version can have... [ Read full article ]

18 February 2009  0 Comments

EPiServer SEO: Reduce Duplicate Content Links

by: Fredrik Haglund ( Inexor )

Google and other search engines does not like duplicate content. The reason is that the page’s reputation (or page rank) is calculated from incoming internal and external links. If you have more links leading to the same page the reputation will b... [ Read full article ]

15 February 2009  0 Comments

EPiServer Page Type usage report

by: Fredrik Haglund ( Inexor )

Do you have a lot of page types in an EPiServer project and a gut feeling some of the are not used? Quite common if you migrate a project from EPiServer CMS 4 that are based on the EPiServerSample project or if you inherit a project based on one o... [ Read full article ]

09 February 2009  0 Comments

How to patch/fix/hack someone else’s assembly

by: Fredrik Haglund ( Inexor )

Here is my recipe when I can see no workaround to a defect or other problem and want to get around it. This is not for the faint hearted and I do not recommend it for production! 1. Extract source code and patch code You need to use Roaders’... [ Read full article ]

06 February 2009  0 Comments

EPiServer log: More configuration tips

by: Fredrik Haglund ( Inexor )

Nicklas Israelsson shared in his blog how you can exclude some name spaces from the EPiServer log to reduce the noise while debugging. A very useful tip! I would like to share how I use logging to collect exceptions (and debug info) in production.... [ Read full article ]

03 February 2009  0 Comments

EPiServer Error Handling (broken in R2 & IIS7)

by: Fredrik Haglund ( Inexor )

As you might have noticed EPiServer has its own Error Handling that has the following features. It shows a localized error message. It can hide the Exception details and stack trace – if you do not have the permission needed It can send an email... [ Read full article ]

20 January 2009  0 Comments

Search in EPiServer can generate invalid html

by: Fredrik Haglund ( Inexor )

I found two defects in the public templates for searching that makes it possible that the search result contains invalid html. Since a lot of people copied this code to their own sites I think is worth mentioning. EPiServer.Core.Html.TextIndexer.S... [ Read full article ]

16 January 2009  0 Comments

Sharing My Updated Toolbox with you

by: Fredrik Haglund ( Inexor )

I have updated My Toolbox page with some more usefull productivity enhacning tools. A few highlights from the list: Pixel Perfect A Firebug extension that allows you to easily overlay a web composition (an image) on top of the developed HTML to se... [ Read full article ]

13 January 2009  0 Comments

Fredrik Haglund ( Inexor )

About me

Fredrik works as Senior Consultant for Inexor. He is a specialist in development on the Windows platform. Fredrik has more than 13 years experience in development, as Senior Consultant and Trainer and has also extensive business software development experience, as well as time spent as an R&D Engineer.


Fredrik have been European Developer Evangelist for CodeGear and also worked as senior consultant at Borland before joining Inexor.



Skype: fredrik.haglund



Tag cloud

EPiTrace logger