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 349 posts 1631 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 373 posts 2057 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies