Copied to clipboard

Flag this post as spam?

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


  • Derek Staszak 15 posts 106 karma points
    Feb 09, 2017 @ 21:37
    Derek Staszak
    0

    Error setting up local site, Controller no longer working after upgrade

    Hi,

    I am working on setting up my existing site locally, and I have run into another issue. I just upgraded from Umbraco 7.2.6 to 7.5.9. The backoffice is running fine, but when I try to run the site I get an error message saying:

    The current request for action 'Index' on controller type 'HomePageController' is ambiguous between the following action methods: System.Web.Mvc.ActionResult Index(Umbraco.Web.Models.RenderModel) on type DiamFusion.Web.Controllers.HomePageController System.Web.Mvc.ActionResult Index(Umbraco.Web.Models.RenderModel) on type Buzz.Hybrid.Controllers.SurfaceRenderMvcController

    The code for the controller is:

    namespace DiamFusion.Web.Controllers
    {
      public class HomePageController : WebControllerBase
      {
        [DonutOutputCache(CacheProfile = "FiveMins")]
        public override ActionResult Index(RenderModel model)
        {
          return this.CurrentTemplate<BaseModel<HomePage>>(HomePageLogic.AddCustomHomePageProps(ModelLogic.CreateBaseModel() as BaseModel<HomePage>));
        }
      }
    }
    

    Thanks, Derek

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 14, 2017 @ 07:46
    Dave Woestenborghs
    0

    Hi Derek,

    Can you also post the code of your WebControllerBase. I think the problems lies there.

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft