Asp – MVC AreaRegistration

Where is Class AreaRegistration ?****strong text Cannot find Class AreaRegistration in MVC 2 ?
I Have installed MVC 2 Preview 2 (Had Preview 1 instlled but not used)

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc;

namespace MvcAreasSingleProject.Areas.Blog
public class Routes : AreaRegistration

Gives missing using directive or an assembly reference error (Same error RegisterRoutes)
Where is Class AreaRegistration ?

Best Solution

double check your references to system.web.mvc to make sure that it is version 2.0.0 I had the same problems with AreaRegistration and forgot to check.

Related Question