MVC2 Areas not Registering Correctly
- by Geoffrey
I believe I have my Areas setup correctly (they were working in MVC1 fine). I followed the guide here:
http://odetocode.com/Blogs/scott/archive/2009/10/13/asp-net-mvc2-preview-2-areas-and-routes.aspx
I've also used Haacked's Route Debugger. Which shows the correct Area/Controller registration when I run it.
However when I try to go to my (AreaName)/(Controller) I get this error:
"The resource cannot be found."
I believe this indicates there's a problem with the routing, but I'm having trouble debugging this. Where should I set my breakpoints to catch routing errors in MVC2?
I'm also using SparkViewEngine compiled against MVC2 references. Could this possibly be causing this error? I've set breakpoints on the controller in the area and it never fires off, I assumed the view engine doesn't kick in until after the controller has been initiated, but I could be wrong.
The non-area landing page works fine, and I've stripped my project of all areas except one, to avoid any sort of naming conflicts. Any ideas where I can try to look next?