Copied to clipboard

Flag this post as spam?

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


  • Robert Stigsson 47 posts 158 karma points
    Nov 03, 2015 @ 08:14
    Robert Stigsson
    0

    Upgrade from 7.3.0 -> 7.3.1, The Controller for Path '/' was not found

    Hi!

    I just updated from 7.3.0 -> 7.3.1 and found that some of my macros stopped working.

    My macro is now doing this (Located inside Views/MacroPartials):

    @{Html.RenderAction("Teaser", "TeaserSurface", new {index = Model.MacroParameters["teaser"] });}
    

    And my TeaserSurfaceController.cs (Located inside folder Controllers) looks like this:

    namespace Xxx.Controllers
    {
        public class TeaserSurfaceController : SurfaceController
        {
            public ActionResult Teaser(int index)
            {
                var vm = new TeaserVM()
                {
                    Index = index
                };
                return View(vm);
            }
        }
    }
    

    And lastly, this is my view inside the Views/TeaserSurface-folder

    @model Xxx.ViewModels.TeaserVM
    @if (Model.Index != -1)
    {
        @Html.Raw(@library.RenderTemplate(Model.Index))
    }
    

    The error I get is:

     Error rendering template with id 3421: 'System.Web.HttpException (0x80004005): The controller for path '/' was not found or does not implement IController.
       at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
       at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
       at Umbraco.Web.Mvc.ControllerFactoryExtensions.GetControllerTypeInternal(IControllerFactory factory, RequestContext requestContext, String controllerName)
       at Umbraco.Web.Mvc.RenderRouteHandler.GetUmbracoRouteDefinition(RequestContext requestContext, PublishedContentRequest publishedContentRequest)
       at Umbraco.Web.Templates.TemplateRenderer.ExecuteTemplateRendering(TextWriter sw, PublishedContentRequest contentRequest)
       at Umbraco.Web.Templates.TemplateRenderer.Render(StringWriter writer)
       at umbraco.library.RenderTemplate(Int32 PageId, Int32 TemplateId)' 
    

    Anyone got an idea what to do after the latest update?

    EDIT: PS. I updated through NuGet.

  • 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