Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shaishav Karnani from digitallymedia.com 354 posts 1638 karma points
    Jan 20, 2014 @ 12:52
    Shaishav Karnani from digitallymedia.com
    0

    Umbraco 7 - Surface Controller not working

    Installed Umbraco 7.0.1 and added code for surfacecontroller. Same code works fine for Umbraco 6.1.6 but it is not working for Umbraco 7.

    When I try /umbraco/surface/homesurface it is giving me 404 error.

    public class HomeSurfaceController : Umbraco.Web.Mvc.SurfaceController
    {
        //
       // GET: /Home/
       public ActionResult Index()
       {
          return Content("home control");
       }
    }

     

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Jan 24, 2015 @ 21:39
    Andy Butland
    0

    Not sure what the case was in version 6, but in 7 at least looks like you need to explicity state the action in your URL - so /umbraco/surface/homesurface/index

    Andy

Please Sign in or register to post replies

Write your reply to:

Draft