01 Oct 2012
18 Oct 2012
Link to this post
I had changed my controller and model and designer namespaces so they don't have the default SitefinityWebApp namespace. Now I get a NullReferenceException on my pages where I use Html.ActionLink. Before, the links rendered (with the wrong path, but at least they didn't crash). I can probably figure out how to fix the routing, but I'm stuck on the crashing.
It fails here:
Telerik.Sitefinity.Mvc.SitefinityMvcRoute.EnsureActionExistsOnController(Type controllerType, String actionName)
The controller exists (Contact). The action exists (Index). I can get to the controller/view just fine if I make a page with the Contact widget, so it is clearly there, and Sitefinity can see it. But Sitefinity can't figure it out from an ActionLink.