Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
This seems to be working now I have registerd ASP.Net 4 in IIS again
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
I now have folder in solution and controller works as expected.
aspnet_client\system_web\system_web
I've run into the same thing but I can't get this work at all. 404's every time I try to render the page with additional parameters.
Check the Reference to ‘System.Web.MVC’ is V4.0.30319
Also these MVC Templates just released should also help
http://world.episerver.com/Articles/Items/ASPNET-MVC-Templates-for-EPiServer-7-CMS/
http://world.episerver.com/Download/Items/EPiServer-CMS/EPiServer-7---CMS/EPiServer-7-MVC-Templates/
I am having issue creating a custom route which is not using CMS content, for example I want to use for javascript on the client side
I have add a standard MVC controller
public class mytestController : Controller
{
//
// GET: /mytest/
public ActionResult Index()
{
return View();
}
}
Added a entry into Global.asax.cs to test
protected override void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute(
"mytestRoute", // Route name
"mytest/{action}", // URL with parameters
new { controller = "mytest", action = "Index" });
base.RegisterRoutes(routes);
}
I have not created a view as I want my breakpoint to hit the controller index to check it works, my project is based on the Alloy demo site.
I am using EPiServer 7 release, Windows 7 on IIS7.5 - .Net4 Intregrated App pool