returns the below and nothing I do works. Everything else on the site in regards to RenderMvcController works correctly without issue.
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
This probably isn't particularly helpful, but FWIW I've replicated your code into my 6.01 installation and it works fine... so unless it's an issue with a more recent version I can't see you have anything wrong here.
Its a strange one running on Windows 8 Umbraco version v6.1.2 everything works just not SurfaceControllers. I have noticed within the source of the error there's more hidden information within the HTML. Looks like something a little more underlying is happening.
Thanks
Andy
<!--
[HttpException]: The controller for path '/umbraco/Surface/UtilsSurface/GetAddress/' 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 System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at Umbraco.Web.Mvc.UmbracoMvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-->
SurfaceControllers
Hi, I have upgraded a umbraco solution I had to 6 and have redone the site with MVC but now have a issue.
I have a surface controller as below in the app_code folder
Very simple doing next to nothing I have checked to see if the route was registered using
This correctly shows the route in the routing table
mini-profiler-resources/{filename}
umbraco/RenderMvc/{action}/{id}
Install/PackageInstaller/{action}/{id}
umbraco/RestServices/{controller}/{action}/{id}
umbraco/Surface/UtilsSurface/{action}/{id}
umbraco/Surface/MySurface/{action}/{id}
umbraco/Api/DomainsApi/{action}/{id}
umbraco/Api/ExamineManagementApi/{action}/{id}
However going to the site
http://domain.local/umbraco/Surance/UtilsSurface/GetAddress/ ;
returns the below and nothing I do works. Everything else on the site in regards to RenderMvcController works correctly without issue.
This probably isn't particularly helpful, but FWIW I've replicated your code into my 6.01 installation and it works fine... so unless it's an issue with a more recent version I can't see you have anything wrong here.
Andy
Its a strange one running on Windows 8 Umbraco version v6.1.2 everything works just not SurfaceControllers. I have noticed within the source of the error there's more hidden information within the HTML. Looks like something a little more underlying is happening.
Thanks
Andy
@Andrew
Did you find a solution to this? I'm having the same problem.
Thanks
Any update? I am also facing the error.
have you tried calling the action from your template with @Html.Action("GetAddress","UtilsSurface")
Dave
Hi,
I have route path in Global.asax.cs
Then using this for ajax call like
It's Working fine.
Thanks,
Juhi Paunikar
is working on a reply...