"The controller for path '/' was not found or does not implement IController" error after upgrade from v6.0.5 to v6.1.3
After following the standard upgrade path found on Upgrades in general and stepping through the all the configs in the config folder as well as the base web.config AND the views/web.config via WinMerge; I restarted the site profile, opened the site in Chrome, and was walked through the upgrade steps as usual!
I'm thinking then "YAY this site can go live once I push these changes to the production server and go to bed!!!"
Once the upgrade completed I went into the back office and republished the entire site just to be on the safe side. I sat back, relaxed and opened the site front end ... to receive a YSOD!
Server Error in '/' Application.
The controller for path '/' was not found or does not implement IController.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The controller for path '/' was not found or does not implement IController.
Source Error:
Line 41: }
Line 42: <header>
Line 43: @Html.Action("PrepareCallback", "CallbackFormSurface")
Line 44: <p id="helplineCallbackResponse"></p>
Line 45: </header>
Source File: e:\sites\WIP\www.lawcare.org.uk\website\Views\Partials\Hotlines.cshtml Line: 43
Stack Trace:
[HttpException (0x80004005): The controller for path '/' was not found or does not implement IController.]
System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +683953
Umbraco.Web.Mvc.RenderControllerFactory.CreateController(RequestContext requestContext, String controllerName) +162
System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +305
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +87
System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +41
[HttpException (0x80004005): Execution of the child request failed. Please examine the InnerException for more information.]
System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +785864
System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3977
System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +275
System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +94
System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +700
System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) +123
ASP._Page_Views_Partials_Hotlines_cshtml.Execute() in e:\sites\WIP\www.lawcare.org.uk\website\Views\Partials\Hotlines.cshtml:43
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +196
StackExchange.Profiling.MVCHelpers.WrappedView.Render(ViewContext viewContext, TextWriter writer) +295
System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +158
Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, Nullable`1 timeout, Func`1 getCacheItem, Object syncLock) +218
Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, Nullable`1 timeout, Func`1 getCacheItem) +176
Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, Nullable`1 timeout, Func`1 getCacheItem) +154
Umbraco.Web.CacheHelperExtensions.CachedPartialView(CacheHelper cacheHelper, HtmlHelper htmlHelper, String partialViewName, Object model, Int32 cachedSeconds, String cacheKey, ViewDataDictionary viewData) +438
Umbraco.Web.HtmlHelperRenderExtensions.CachedPartial(HtmlHelper htmlHelper, String partialViewName, Object model, Int32 cachedSeconds, Boolean cacheByPage, Boolean cacheByMember, ViewDataDictionary viewData) +428
ASP._Page_Views_SW_Master_cshtml.Execute() in e:\sites\WIP\www.lawcare.org.uk\website\Views\SW_Master.cshtml:118
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +196
System.Web.WebPages.WebPageBase.Write(HelperResult result) +89
System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +233
System.Web.WebPages.WebPageBase.PopContext() +291
StackExchange.Profiling.MVCHelpers.WrappedView.Render(ViewContext viewContext, TextWriter writer) +295
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +378
System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +854204
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +854204
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +265
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +854256
System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__19() +40
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +15
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +65
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +51
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +51
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
So here is the offending line 43 of "Hotlines.cshtml":
Sadly no, I didn't. I rolled the site back to the 6.0.5 version from backup and will be migrating content to a new instance of the 6.1.3 version when I return to my desk after next week.
If you find anything else on this please let me, and the core, know!
"The controller for path '/' was not found or does not implement IController" error after upgrade from v6.0.5 to v6.1.3
After following the standard upgrade path found on Upgrades in general and stepping through the all the configs in the config folder as well as the base web.config AND the views/web.config via WinMerge; I restarted the site profile, opened the site in Chrome, and was walked through the upgrade steps as usual!
I'm thinking then "YAY this site can go live once I push these changes to the production server and go to bed!!!"
Once the upgrade completed I went into the back office and republished the entire site just to be on the safe side. I sat back, relaxed and opened the site front end ... to receive a YSOD!
So here is the offending line 43 of "Hotlines.cshtml":
And here is the Surface Controller (found in the "App_Code" directory atm):
Have I done something wrong in the upgrade or what?
As always all help is greatly appreciated and I can give access to files or anything else if need be!
Thank you for your time and patience!
Jon @precisioncoding
hey Jon, did you manage to fix this issue as i'm having the same problem.
Thanks
Bezmundo,
Sadly no, I didn't. I rolled the site back to the 6.0.5 version from backup and will be migrating content to a new instance of the 6.1.3 version when I return to my desk after next week.
If you find anything else on this please let me, and the core, know!
Sorry I could be more help.
Jon
Had the same error from a clean install of 6.1.3. Over wrote the BIN with a 6.1.1 install BIN files and set the web config.
I also had this error while updating from 6.0.5 to 6.1.6. I had two MVC projects that I had build, one of them gave this same error.
I created a new clean MVC4 project on .NET 4.5 (4.0 gave this error to) and imported my source code. Everithing works fine now.
Hope this helps
I had also this error when I had my controllers in the App_Code. When I embedded the classes into a namespace, everything worked again!
Perfect, Thanks @Damiaan
It's working for me.
@Damiaan thanks for the solution, well fix!
Otherwise i would have been bold by the start of tomorrow. Awesome!
Got to love the Umbraco Community!
Bold or bald? ;-)
@Damiaan thanks for the solution. Was struggling with this for a couple of hours.
Glad it solved your issue!
is working on a reply...