The resource cannot be found' - error for 1 specific controller asp.net mvc?

Make sure that previous routes don't match this case. Comment all others routes and then try. In my computer it's works for me :).

Up vote 0 down vote favorite share g+ share fb share tw.

I've been pulling my hair out on this one. I have a controller: ChatController of which any route I try gives me a 'The resource cannot be found' error. The route: routes.

MapRoute( "chatPage", "{lang}/chat/{action}", new { lang = "th", controller = "Chat", action = "Index" } ); The url: /th/chat All my other routes (to other controllers) work fine. I use routedebug. Dll to see if my routes are set up correcty and the route is correct.

Even if I delete the whole ChatController, I still get the same error. That means it does find the route but doesn't even get to the controller (usually this will give an controller not found error or something similar) I get this on development server and IIS. Anyone?

* Update * I got it working by changing the routevalue from {lang}/Chat to {lang}/chat and changed my controllername accordingly (ChatController => chatController), this works... for now. Still want to know what causes this. Asp.

Net-mvc-3 link|improve this question edited Jun 13 '11 at 20:03 asked Jun 13 '11 at 19:08Elger456 15% accept rate.

Please show your entire route definition table as this might be important. – Darin Dimitrov Jun 13 '11 at 19:11 The routedebug utility (see image above) shows the route matches the correct route when I type the route. Also, when I only set 1 route (the one described above) I get the same error.

– Elger Jun 13 '11 at 19:36.

The routedebug utility (see image above) shows the route matches the correct route when I type the route. Also, when I only set 1 route (the one described above) I get the same error – Elger Jun 13 '11 at 19:37 check again your controller name (ChatController) and action name (Index) and see if you have any typo. – Fro Jun 13 '11 at 19:47 Even if I remove ChatController.

Cs from the project and rebuild I get the same error. Like I said, when deleting the whole controller you should get another error. – Elger Jun 13 '11 at 19:56 if you don't have controller (removed or all commented) you get the 404 error - The resource cannot be found.

Make sure that your ChatController is in Controllers catalog. – Fro Jun 13 '11 at 20:13? I think you misunderstand me.

Try it yourself: remove any controller and rebuild and see what kind of error you get. It ain't an 'resource cannot be found' exception. – Elger Jun 13 '11 at 20:24.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions