ILearnable .Net

December 2, 2010

Getting EPiServer CMS6 to run under Asp.Net 4.0

Filed under: Uncategorized — andreakn @ 13:33

There’s a couple of gotchas for getting EPiServer to run under .Net 4.0

New default ClientID generation scheme in .net 4 disrupts EPiServer’s javascripts

If you find youself getting the following javascript exception when creating pages or expanding nodes in the edit tree in episerver:

error: the target Fullregion$explorertreeview$treeview for the callback could not be found or dit not implement icallbackeventhandler

The solution is to add the following attribute to web.config: under configuration > system.web > pages :  clientIDMode=”AutoID”

You can scope this to only be applied on the util and UI locations if you don’t want the old school ID generation scheme applied globally


Validation is more strict in .net 4.0

When editing pages and submitting rich text content containing tags you might get complaining to you that you need to turn off eventvalidation, but in addition you also need to instruct 4.0 to use <httpRuntime requestValidationMode=”2.0″ /> under configuration > system.web


1 Comment »

  1. Thanks for this article it helped me.
    Strangely enough EPiserver didn’t have any good information on the subject.
    Your article was short and informative thanks again.

    Comment by Jimmy Engström — April 27, 2011 @ 15:28 | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: