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>));
}
}
}
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:
Thanks, Derek
Hi Derek,
Can you also post the code of your WebControllerBase. I think the problems lies there.
Dave
is working on a reply...