EPiServer CMS 6.0 now supporting ASP.NET 4.0

  • Posted: Aug 16 2010
  • Average rating:
  • Number of votes: 17
  • Views: 13754

We are pleased to announce that after thorough investigation we can now officially confirm that EPiServer CMS 6.0 supports running on ASP.NET 4 as a platform. It is also possible to work with EPiServer CMS projects in Visual Studio 2010, although there does not yet exist an integration package with it. The integration with Visual Studio 2010 is scheduled for the next release of EPiServer CMS.

ASP.NET 4 introduces a number of features that improve core ASP.NET services such as output caching and session-state storage. With ASP.NET 4, web forms controls now render clean, semantically correct, and CSS friendly HTML markup. In ASP.NET 4.0, there is a new concept of Generate From Usage - this generates properties, methods, classes, and other types based on existing code. Built-in URL routing functionality allows you to expose clean, search engine friendly, URLs and increase the traffic to your website. ViewState within applications is smaller and can now be more easily controlled.

In order to run EPiServer CMS 6 on ASP.NET 4.0 you will have to make certain changes to your configuration files.

The following steps will guide you through the procedure:

  1. A default installation of EPiServer CMS will usually run in a 2.0 app-pool in .NET 3.5 after installation. Change the app-pool to v.4.0.
  2. Update web.config so the <compilation> tag has the attribute targetFramework set to “4.0”.
  3. In web.config, find the <system.web> tag. Update the <httpRuntime> tag below <system.web> by setting the attribute requestValidationMode to “2.0”.
  4. Find the <pages> tag and set the attributes controlRenderingCompatibilityVersion="3.5" and clientIDMode=”AutoID”.
  5. Make sure that you have a reference to the System.Web.Routing assembly under the <assemblies> tag:

    1: <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  6.  
  7. If you when developing a site in Visual Studio 2010, need to add a reference to System.ComponentModel.Composition, make sure that you use the version of that which is included in the EPiServer installation (for CMS 6.0 the version number is "2009.26.8.0"), and not the one installed with .NET 4. In Visual Studio, the referencing can be done by following these steps:
     
    1. Unload the project in VS 2010 by right-clicking on the project and choose “Unload project”.
    2. Right click on the project again and select “Edit project”.
    3. Locate the line : <Reference Include=”System.ComponentModel.Composition” /> and change it to:
     
    <Reference Include="System.ComponentModel.Composition" >
    <HintPath><location of episerver bin> \System.ComponentModel.Composition.dll</HintPath>
    </Reference>

Most of these changes will be made automatically if you upgrade your solution using the Visual Studio 2010 upgrade functionality – but you need to do them manually to upgrade a running production environment.

Important Information Regarding Live Monitor

The following information was added to this article after further investigation regarding the compatibility of LiveMonitor with EPiServer CMS 6 and ASP.NET 4.

In order to ensure that an updated EPiServer CMS 6 site will be compatible with Live Monitor, please check the following:

  • Remove the ASP.NET 3.5 <compiler> specification under <system.codedom> section if present.
  • If using Live Monitor, replace the HTTP handler named svc-Integrated that is specified under the UI location with:
     
    <add name="svc-Integrated-4.0" path="*.svc" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />Related information

Related Information

System requirements for EPiServer CMS 6.0

Download EPiServer CMS 6.0

More about EPiServer CMS 6.0

Comments

    Anders G. Nordby

    08 September 2011 10:51 - Permanent link

    Anders G. Nordby

    Participating Citizen


    EPiServer Certified Developer

    Mats Persson

    24 October 2011 13:31 - Permanent link

    Mats Persson

    Citizen


    MD

    05 January 2012 12:41 - Permanent link

    MD

    Citizen


    Leading Concepts UK LTD

    Citizen


    Kianoush Eshaghi

    26 March 2012 16:48 - Permanent link

    Kianoush Eshaghi


Written by:

Allan Thræn EPiServer employee
EPiServer Denmark
Citizen
I'm a software developer & architect turned Product Manager. I'm interested in how we can change technology so it adapts to people rather than having them adapt to it. I'm passionate about new technologies, user experience, prototyping, artificial intelligence, information management and web content management. I love to talk to customers, discuss architecture with developers and write technical blogs, code samples and doing product evangelism.

Allan Thræn's latest article

FeedBackbutton image