Question

I test my app only on local cassini web server, and I get strange thing.

One Index page works right in default manner, second shows 404, but when use full version Controller/Index - works normal. Only difference I found is that in first sample there is no slash in the end, and in second slash exists, but link that points on corrupted is without slash.

Was it helpful?

Solution

Can you show us your routes? Or even better: Try to use Phil Haack's excellent (and essential) Route Debugger. It will tell you which route(s) are hit for a given request, or if no route is hit at all.

http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx

Works only with MVC Beta though, not if you use any older Preview Release of MVC.

OTHER TIPS

Thanks for RouteDebug, the Problem was because I called Controller by name of one of the directory in the root, like Models, Views and etc!

if you could post your routings we could help you better, but for now I'd suggest you to debug it using the Routing Debugger.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top