Blog entries posted during 2008

EPiPattern: How to render valid xhtml (part 1/2)

by: Fredrik Haglund ( Inexor )

How do you inject dynamic content into your web page? Following is a list of the most common methods I find when doing quality and code reviews with some comments and dangerous pitfalls. #1: Inline Expressions with Code Render Blocks Using inline... [ Read full article ]

08 December 2008  0 Comments

#2: Hidden Gems of EPiServer CMS R2

by: Fredrik Haglund ( Inexor )

Friendly URL Rewrite works with AJAX UpdatePanel Finally! The new UpdatePanelPostBackRewritePipe class will take care of rewrite of all URL’s in an UpdatePanel. No need for manual conversion of links or dirty workarounds when using AJAX. New -... [ Read full article ]

26 September 2008  0 Comments

#1: Hidden Gems of EPiServer CMS R2

by: Fredrik Haglund ( Inexor )

The next release of EPiServer called R2 is not far away. Roger Wirz have written more about the major features in the R2 release at EPiServer World. I would like to share some of the smaller improvements I have found during my work with the upcomi... [ Read full article ]

25 September 2008  0 Comments

Page Folders and Uploading of files in EPiServer

by: Fredrik Haglund ( Inexor )

It is quite forward to get the uploaded file from the browser to the web server using ImageFileUpload component but where do you save the file in EPiServer? I wrote a post earlier about how to use the unified file system in EPiServer and this is t... [ Read full article ]

05 September 2008  0 Comments

Using LogView4Net with EPiServer

by: Fredrik Haglund ( Inexor )

I must recommend logview4net as a tool when you debug EPiServer and other apps using log4net. Logview4net can listen for UDP packages from your development environment and is in my opinion a little bit faster to work with than logging to file. (Re... [ Read full article ]

02 September 2008  0 Comments

Easy slide show in EPiServer with LyteBox

by: Fredrik Haglund ( Inexor )

EPiPattern: In this blog post I will introduce FileSystemDataSource and tree handy methods that you should add to your toolbox: RegisterCssFile, RegisterScriptFile and GetPageDirectory. Now and then there is a need to make a slide show in EPiServe... [ Read full article ]

27 August 2008  0 Comments

Solution to WebResource.axd exception

by: Fredrik Haglund ( Inexor )

I have got several mail about how to solve the issue with the exception "The WebResource.axd handler must be registered in the configuration to process this request" that is quite common to get when you use EPiServer CMS. My earlier hack in my blo... [ Read full article ]

26 August 2008  0 Comments

Installation of EPiServer components

by: Fredrik Haglund ( Inexor )

In a larger organization it can be cumbersome to explain for the editors how to install the EPiServer ActiveX controls that provides you with some extended functionality. Security restrictions can also be a problem for ActiveX controls. So why... [ Read full article ]

22 July 2008  0 Comments

EPiServer: ‘The virtual path could not be loaded’ error when registering Web Parts in admin mode

by: Fredrik Haglund ( Inexor )

So you have created some web parts and they work fine on your test machine but when you want to register them on a test or production machine you only get a uninformative ‘The virtual path could not be loaded’. I guess you have already checked tha... [ Read full article ]

09 July 2008  0 Comments

EPiPattern: DO & DONT with EPiServer Properties

by: Fredrik Haglund ( Inexor )

This might be obvious stuff for most seasoned EPiServer developers but I still think it is worth blogging about because I see these dangerous mistakes whenever I do a code review of an EPiServer project. Null values Remember that all EPiServer... [ Read full article ]

02 July 2008  0 Comments

Access Dynamic Properties when PageData is writable

by: Fredrik Haglund ( Inexor )

One of the big changes between EPiServer CMS 4 and 5 is the handling of PageData instances and Dynamic Properties (read Inherited Property) in the cache. I was reminded of this when I created a custom property and needed access to a Dynamic Proper... [ Read full article ]

28 May 2008  0 Comments

C# Code: How to transform Åäö to Aao

by: Fredrik Haglund ( Inexor )

I have extended the Friendly Url Rewriter in one project to rewrite all URL:s following a specific pattern to a search page. Search Engine Optimization (SEO) with Friendly URL Rewriter Instead of having to use URL that looks like this:... [ Read full article ]

16 April 2008  0 Comments

Cached EPiServer License Violation script error

by: Fredrik Haglund ( Inexor )

You will probably first notice that something is wrong because you get strange behavior from EPiServer. Maybe the right-click menu does not work in view mode or something misbehaves in edit mode. I had a client with this issue who could not get... [ Read full article ]

14 April 2008  0 Comments

Enable debug logging for EPiServer Scheduler

by: Fredrik Haglund ( Inexor )

If you have problems with the EPiServer Scheduler Service unexcitingly stopping you can also turn on debug logging to get more clues. Change EPiServer.SchedulerSvc.exe.config FILE You need to add the following to the service’s config-file to get... [ Read full article ]

03 April 2008  0 Comments

Disable EPiServer UrlRewriter Interference

by: Fredrik Haglund ( Inexor )

Are you also annoyed that EPiServer CMS 5 Friendly URLs and the handy trace.axd utility does not play well together? Does your site have standard aspx-pages that behaves strangely sometimes because EPiServer Friendly URL Rewriter interfere with... [ Read full article ]

03 April 2008  0 Comments

Auto Restart of EPiServer Scheduler Service

by: Fredrik Haglund ( Inexor )

There are several functions in a EPiServer Web Application that rely on the Services installed by EPiServer Manager. For example delayed publish of a new version of a page at a specific time, mirroring of pages between servers, archiving pages tha... [ Read full article ]

03 April 2008  0 Comments

EPiServer Export, Import or Mirror Troubles?

by: Fredrik Haglund ( Inexor )

I have been working a lot with migration and mirroring lately using EPiServer’s functions for export and import of data. My EPiServer Wish list Show call stack when exceptions halt export or import jobs Show PageID and Property related to errors a... [ Read full article ]

28 March 2008  0 Comments

EPiServer License violation!

by: Fredrik Haglund ( Inexor )

Have you been annoyed by the exception “License violation! License is already in use at another online site” when you switch from one web site to another on you developer machine? I have and the reason is of course that I use my developer license... [ Read full article ]

27 March 2008  0 Comments

Available Page Types in EPiServer

by: Fredrik Haglund ( Inexor )

It is a best practice to limit the number of Pages Types an editor can choose from when the editor creates a new page. As you probably know this is configured in Admin Mode on each Page Type. What you probably don’t think about is that these... [ Read full article ]

20 March 2008  0 Comments

Convert EPiServer Form to XForm

by: Fredrik Haglund ( Inexor )

You must get rid of your Form-properties and convert them to EPiServer XForm before you can migrate them to EPiServer 5. You can easily identify all form-properties on you site with some SQL: SELECT pt.pkID AS PageTypeId, pt.Name as PageType,... [ Read full article ]

19 March 2008  0 Comments

Archive Page can create strange exceptions

by: Fredrik Haglund ( Inexor )

If you export pages that have the Build-in property Archive Page set pointing to a page that is not included in your export package you will get an exception. At least if you are migrating from EPiServer 4 to 5.1. Use the following script if you... [ Read full article ]

17 March 2008  0 Comments

Export from EPiServer CMS 4

by: Fredrik Haglund ( Inexor )

As you probably know EPiServer CMS 5 does not encrypt the export packages like version 4 did. You can open them easily and look inside by changing the extension to zip. The export packages from EPiServer 4 is encrypted and sometimes when you try t... [ Read full article ]

28 February 2008  0 Comments

Get control over your assembly dependencies

by: Fredrik Haglund ( Inexor )

Suddenly everything stops working you do not have clue what’s gone wrong. You just get annoying exceptions thrown in your face explaining that it could not find a specific version of a DLL or that the located assembly’s manifest definition does no... [ Read full article ]

23 February 2008  0 Comments

Tip of the day: Simplify Testing of Registration

by: Fredrik Haglund ( Inexor )

Many of us have implemented registration procedures both in generic ASP.NET sites and also in EPiServer. One of the more annoying things when you as a developer or tester works with the registration procedure and have to test email activation. It... [ Read full article ]

06 February 2008  0 Comments

Performance Tuning and Optimization of EPiServer

by: Fredrik Haglund ( Inexor )

There are many factors to look at when you want to tune the performance of your EPiServer site. This is the first post about common pitfalls and how to optimize EPiServer for performance. EPiServer and Memory First thing to check is that you have... [ Read full article ]

01 February 2008  0 Comments

About Searching inside Uploaded Files

by: Fredrik Haglund ( Inexor )

EPiServer uses both an open source library (Lucene) and Microsoft Indexing Service to create the search index for files. In EPiServer 4 was Microsoft Indexing Service responsible for building an index for ordinary files (i.e. the upload folder) an... [ Read full article ]

25 January 2008  0 Comments

Configure EPiServer File Manager

by: Fredrik Haglund ( Inexor )

I got a question about the File Manager from one of the attendees on my last EPiServer Developer training and I will share my answer with you. You control the name, order and number of starting points in the File Manager for EPiServer CMS 5 by... [ Read full article ]

21 January 2008  0 Comments

Web.config, version control and nice formatting

by: Fredrik Haglund ( Inexor )

EPiServer has a site tag with a lot of attributes. When you change the web.config from EPiServer Manager or by calling Save on the Configuration class yourself all attributes will be on one looong line (this is default behaivour by the dotnet... [ Read full article ]

12 January 2008  0 Comments

Storing metadata attached to uploaded files

by: Fredrik Haglund ( Inexor )

Each UnidfiedFile object has a Summary property that you can use to access meta data about the file that is stored in the database (i.e. Author, Category, Comments, Keywords, Subject and Title). These properties can be edited through the file... [ Read full article ]

07 January 2008  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